Answers for "remove directory in command line"

8

remove directory in cmd

# for removing empty directory
$ rmdir myDirectory

# to remove a directory that contains files and subdirectory
$ rm -r myDirectory
Posted by: Guest on April-08-2020
2

remove a file or dir in linux or mac or ubuntu

note:your_file_name can be a dir or a file 

sudo rm -r your_file_name
Posted by: Guest on May-11-2020
3

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

Code answers related to "remove directory in command line"

Python Answers by Framework

Browse Popular Code Answers by Language