按修改时间列出文件和文件夹详细信息
[root@localhost /]# ls -ltrtotal 254drwxr-xr-x 2 root root 4096 Nov 8 2010 miscdrwxr-xr-x 2 root root 4096 May 11 2011 srvdrwxr-xr-x 2 root root 4096 May 11 2011 selinuxdrwxr-xr-x 2 root root 4096 May 11 2011 optdrwxr-xr-x 2 root root 4096 May 11 2011 mntdrwxr-xr-x 2 root root 4096 May 11 2011 mediadrwx------ 2 root root 16384 Jun 11 22:46 lost+founddrwxr-xr-x 19 root root 4096 Jun 11 23:38 vardrwxr-xr-x 13 root root 4096 Jun 11 23:38 usrdrwxr-xr-x 2 root root 12288 Jun 12 04:03 sbindrwxr-xr-x 2 root root 4096 Jun 12 04:03 bindrwxr-xr-x 4 root root 4096 Jun 12 10:26 homedrwxr-xr-x 6 root root 4096 Jun 12 10:26 datadr-xr-xr-x 232 root root 0 Jun 15 11:04 procdrwxr-xr-x 11 root root 0 Jun 15 11:04 sysdrwxr-xr-x 4 root root 1024 Jun 15 14:45 bootdrwxr-xr-x 14 root root 12288 Jun 16 04:02 libdrwxr-xr-x 10 root root 3520 Sep 26 15:38 devdrwxr-x--- 4 root root 4096 Oct 15 14:43 rootdrwxr-xr-x 75 root root 4096 Oct 16 04:02 etcdrwxrwxrwt 3 root root 98304 Oct 16 08:54 tmp
按照特殊字符对文件进行分类
[root@localhost nginx-1.2.1]# ls -Fauto/ CHANGES CHANGES.ru conf/ configure* contrib/ html/ LICENSE Makefile man/ objs/ README src/
列出文件并标记颜色分类
[root@localhost nginx-1.2.1]# ls --color=autoauto CHANGES CHANGES.ru conf configure contrib html LICENSE Makefile man objs README src
总结
以上所述是小编给大家介绍的linux 中ls命令详解,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对易采站长站网站的支持!










