Answers for "delete directory linux terminal"

1

how to remove folder in terminal linux

To remove an empty directory, use the rmdir command as follows:
$ rmdir foldername

If the directory still contains files or subdirectories, the rmdir command does not remove the directory.
To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r.

$ rm -r foldernam

Shell/Bash By Adam Al-Rahman
Posted by: Guest on July-03-2021
4

remove directory from linux

rm -r filename

rm -rf filename

this command remove the directory and subdirectory forecefully
Posted by: Guest on October-04-2020
0

sudo rmdir recursive

sudo rm -r -f /path/
Posted by: Guest on October-23-2020

Code answers related to "delete directory linux terminal"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language