LDD commands, such asldd /bin/ls 查看ls依赖的库文件
ls command1.-l Options: List file details
[[email protected] ~]# ls -l总用量 4-rw-------. 1 root root 1261 5月 28 19:09 anaconda-ks.cfg[[email protected] ~]# ls -lh总用量 4.0K-rw-------. 1 root root 1.3K 5月 28 19:09 anaconda-ks.cfg第一列是文件类型加权限,第二列表示有几个文件使用相同的inod,第三列示所有者,第四列是所属组,第五列是文件的大小,单位是B。
2.-i View the Inod number of the file
[[email protected] ~]# ls -i 33582987 anaconda-ks.cfg
3.-a View all files and directories under the directory including hidden
[[email protected] ~]# ls -la总用量 28dr-xr-x---. 3 root root 147 5月 30 20:20 .dr-xr-xr-x. 17 root root 224 5月 31 22:33 ..-rw-------. 1 root root 1261 5月 28 19:09 anaconda-ks.cfg-rw-------. 1 root root 1334 5月 31 23:46 .bash_history-rw-r--r--. 1 root root 18 12月 29 2013 .bash_logout-rw-r--r--. 1 root root 176 12月 29 2013 .bash_profile-rw-r--r--. 1 root root 176 12月 29 2013 .bashrc-rw-r--r--. 1 root root 100 12月 29 2013 .cshrcdrwx------. 2 root root 80 5月 31 23:28 .ssh-rw-r--r--. 1 root root 129 12月 29 2013 .tcshrc
4.-d Show current directory
[[email protected] ~]# ls -ld /root/dr-xr-x---. 3 root root 147 5月 30 20:20 /root/
5.-t sorted in chronological order
[[email protected] ~]# ls -lat总用量 28-rw-------. 1 root root 1334 5月 31 23:46 .bash_historydrwx------. 2 root root 80 5月 31 23:28 .sshdr-xr-xr-x. 17 root root 224 5月 31 22:33 ..dr-xr-x---. 3 root root 147 5月 30 20:20 .-rw-------. 1 root root 1261 5月 28 19:09 anaconda-ks.cfg-rw-r--r--. 1 root root 18 12月 29 2013 .bash_logout-rw-r--r--. 1 root root 176 12月 29 2013 .bash_profile-rw-r--r--. 1 root root 176 12月 29 2013 .bashrc-rw-r--r--. 1 root root 100 12月 29 2013 .cshrc-rw-r--r--. 1 root root 129 12月 29 2013 .tcshrc
6.-h Auto-transform units and-l use together
7.ll is an alias for ls-l
[[email protected] ~]# which llalias ll=‘ls -l --color=auto‘/usr/bin/ls