Linux dirs Command

Linux 命令大全Linux Command Reference

The Linux dirs command is used to display directory records.

Display 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 record.

Examples

To list detailed information of all contents in "/home/cc/Ruijie", 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 命令大全Linux Command Reference

Other Extensions