How to Remove Dir in Unix
Deleting a directory (dir) is an essential process when operating a computer. If you are using a Unix-based operating system for the first time, you will recognize that the operating system is developed primarily for command line usage. To remove a directory in Unix you use the rmdir (remove directory) command which works universally no matter what Unix, or subsequently, Linux, operating system you are running.
Instructions
-
-
1
Open your Unix Terminal. The way to do this will differ depending on which operating system (OS) you are using.
-
2
Type "rmdir" (without quotes).
-
-
3
Insert a space and then type the directory name that you want to delete. For example to delete the folder "music," you would type "rmdir music."
-
4
Press "Enter."
-
1