how to Linux / UNIX: How To Empty Directory
In Linux and UNIX, there are several ways to empty a directory: Using the rm command: rm -rf /path/to/directory/* This command will remove all files and subdirectories in the specified directory, but it will not remove the directory itself. Using the find command: find /path/to/directory -mindepth 1 -delete This command will recursively search the specified … Read more