Linux dir命令
- dir -al
Linux dirs命令用于显示目录记录。
显示目录堆叠中的记录。
和ls的区别在于,这个玩意只显示目录
语法
dirs [pathname]
参数:
- -a 显示隐藏目录
- -l 列表形式显示
实例
root@jdit:~# dir -l /usr
total 96
drwxr-xr-x 2 root root 36864 Apr 6 22:07 bin
drwxr-xr-x 2 root root 4096 Apr 18 2022 games
drwxr-xr-x 38 root root 4096 Mar 21 06:53 include
drwxr-xr-x 94 root root 4096 Apr 6 22:07 lib
drwxr-xr-x 2 root root 4096 Apr 21 2022 lib32
drwxr-xr-x 2 root root 4096 Feb 8 14:56 lib64
drwxr-xr-x 10 root root 4096 Feb 8 15:11 libexec
drwxr-xr-x 2 root root 4096 Apr 21 2022 libx32
drwxr-xr-x 12 root root 4096 Mar 21 16:58 local
drwxr-xr-x 2 root root 20480 Apr 6 22:07 sbin
drwxr-xr-x 136 root root 4096 Apr 6 22:07 share
drwxr-xr-x 4 root root 4096 Feb 8 14:26 src
标签:4096,Apr,drwxr,命令,Linux,xr,root,dir
From: https://www.cnblogs.com/hcgk/p/17307741.html