Answers for "how to remove folder from linux terminal"

1

how to remove folder from linux terminal

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 foldername
Posted by: Guest on April-07-2021

Code answers related to "how to remove folder from linux terminal"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language