Directories command in UNIX :
- The directories in the Unix File management is the storage of files. In other words, it can be called as folders in windows.
- All the directories in the Unix will start with “d” followed by permissions. By this we can differentiate which one is file and which one directory.
- Let us see on how to create a directory in Unix using the below example.
- This command is used to create the directory (Folder) in the Unix operating system.
- Mkdir means make a new directory.
- This command in Unix system is used to change the directory. Also, we can call it as go to another directory. Using “mkdir” command we have created a new directory called “work” under the directory “sss”.
- By using the below example, we can go to the newly created directory “work”
- By using the command “ls -lrt”, we can see the files available in the new directory. As we have not created any files under the directory “work”, it is displaying the total 0.
- By using the commands listed in the Files section, we can create files in the “work” directory.
This command is used to display the present working directory in the Unix system.
Cd command without argument:
If we want to go back to the home directory from the sub directories without going back one by one, we can use cd command without any argument. We can simply enter “cd” in the command prompt and press the Enter Key.
This command is used to delete the directory In the Unix system.
rm -rf work
When we delete the directory, the files under the directory will also be deleted.
Other UNIX Commands:
Below are the list of basic UNIX commands used in UNIX operation system.
1. ls Command in Unix
2. Man Command in Unix
3. More Command in Unix
4. Vi or View Command in Unix
5. Touch Command in Unix
6. Mv Command in Unix
7. Cp Command in Unix
8. Rm Command in Unix
9. Cat Command in Unix
10. Diff Command in Unix
11. Wc Command in Unix
12. Chmod Command in Unix
13. Gzip Command in Unix
14. Gzcat Command in Unix
15. Gunzip Command in Unix
16. Directories Command in Unix