Answers for "terminal remove dir"

5

remove folder from terminal

rm -rf some_dir
Posted by: Guest on July-27-2021
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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language