Linux dirs command
The Linux dirs command is used to display directory records.
Display the records in the directory stack.
Syntax
dirs [+/-n -l]
Parameters:
- +n Display the nth directory counting from the left.
- -n Display the nth directory counting from the right.
- -l Display the complete directory records.
Example
To list detailed information about all contents in "/home/cc/Ruijie", you can use the following command.
dir -l /home/cc/Ruijie
The following is the displayed content:
$ dir -l /home/cc/Ruijie
总计2168
-rwxr-xr-x 1 cc cc 112876 2008-06-26 libpcap.so.0.6.2 -rwxr-xr-x 1 cc cc 737192 2008-06-26 libstdc++.so.5 -rwxr-xr-x 1 cc cc1938 2004-04-23 readme.txt
-rwxr-xr-x 1 cc cc 1350772 2005-08-31 xrgsu
Linux Command Reference