The Linux dir command is similar to the ls command to view details such as directories and file permissions. The following describes how to use the Linux dir command.
I. Linux dir command permission
Any user can use the "dir" command on the terminal.
Ii. Linux dir Command Format
The format of using the dir command on the terminal is: dir [Option] [directory name] (no square brackets are used)
Iii. Linux dir command functions
The dir command is similar to the ls command, but has few command parameters. You can use "dir-help" to view the relevant parameters of the dir command.
Iv. Examples
For example, list the details of all content in "/home/cc/Ruijie. The following command is available.
[Cc @ cc ~] $ Dir-l/home/cc/Ruijie
The following content is displayed:
[Cc @ cc ~] $ Dir-l/home/cc/Ruijie
Total 2168
-Rwxr-xr-x 1 cc 112876 2008-06-26 libpcap. so.0.6.2-rwxr-xr-x 1 cc 737192 2008-06-26 libstdc ++. so.5-rwxr-xr-x 1 cc cc1938 2004-04-23 readme.txt
-Rwxr-xr-x 1 cc 1350772 xrgsu
[Cc @ cc ~] $