Contents
How do I make a directory empty?
Delete All Files Using the Find Command
- -type f : Delete on files only.
- -type d : Remove folders only.
- -delete : Delete all files from given directory name.
26 июл. 2019 г.
How do I remove a directory in Unix?
To remove a directory that is not empty, use the rm command with the -r option for recursive deletion. Be very careful with this command, because using the rm -r command will delete not only everything in the named directory, but also everything in its subdirectories.