Home > linux基础 > ls -al查看下文件属性

ls -al查看下文件属性

[[email protected] ~]# ls -al
total 111944
dr-xr-x—. 7 root root 4096 Jul 7 19:06 .
dr-xr-xr-x. 24 root root 4096 Sep 26 2014 ..
-rw——- 1 root root 26762 Oct 8 18:25 .bash_history
-rw-r–r–. 1 root root 18 May 20 2009 .bash_logout
-rw-r–r–. 1 root root 176 May 20 2009 .bash_profile
-rw-r–r–. 1 root root 176 Sep 23 2004 .bashrc
-rw-r–r–. 1 root root 100 Sep 23 2004 .cshrc
drwx—— 2 root root 4096 Oct 10 12:59 .gnupg
drwxr—– 3 root root 4096 May 5 2013 .pki
-rw——- 1 root root 1024 Apr 14 2014 .rnd
drwx—— 2 root root 4096 Jul 30 2013 .spamassassin
drwx—— 2 root root 4096 May 18 17:30 .ssh
-rw-r–r–. 1 root root 129 Dec 4 2004 .tcshrc
-rw-r–r– 1 root root 112936538 Jun 13 2014 100MB.zip
drwx—— 5 root root 4096 Jan 7 2014 Maildir
-rwxr-xr-x 1 root root 3864 Mar 11 2013 centos6_pptpd.sh
-rw-r–r– 1 root root 91440 Jan 8 2008 dkms-2.0.17.5-1.noarch.rpm
-rw-r–r– 1 root root 91345 Mar 26 2012 dkms-2.0.17.5-1.noarch.rpm.1
-rw-r–r– 1 root root 471 Feb 8 2014 index.html
-rwxr-xr-x 1 root root 45400 Jul 28 2013 install.sh
-rw-r–r– 1 root root 105346 Oct 6 2005 kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
-rw-r–r– 1 root root 105346 Mar 26 2012 kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm.1
-rw-r–r– 1 root root 352120 May 17 2011 ppp-2.4.5-17.0.rhel6.x86_64.rpm
-rw-r–r– 1 root root 353008 Aug 31 2012 ppp-2.4.5-23.0.rhel6.x86_64.rpm
-rw-r–r– 1 root root 74392 Dec 8 2010 pptpd-1.3.4-2.el6.x86_64.rpm
-rw-r–r– 1 root root 74392 Dec 8 2010 pptpd-1.3.4-2.el6.x86_64.rpm.1
-rw-r–r– 1 root root 278239 Jul 30 2013 virtualmin-install.log
-rwxr-xr-x 1 root root 2444 Apr 28 2012 vpn_centos6.sh

以最后一个文件举例说下:

-rwxr-xr-x 1 root root 2444 Apr 28 2012 vpn_centos6.sh,意思是vpn_centos6.sh,这个是文件,不是目录,如果是目录的话,前面会是drwx-之类 的;vpn_centos6.sh属于root这个用户,属于root这个用户组;连接数是1;root用户权限是可读,可写,可执行 vpn_centos6.sh这个文件;root用户组的权限是可读,可执行,不可写;其他非root用户组的权限是可读,可执行,不可写。2444表示 vpn_centos6.sh这个文件大小是2.4KB。Apr 28 2012表示vpn_centos6.sh这个文件最后修改时间是2012年4月28日。


若非注明,本博客内容均为原创或翻译自Linode Library,教程默认Centos为linux发行版,转载请注明转自linode中文教程www.linode.im。linode中文教程QQ群:185393826,一起讨论linode及linux,linode中文教程、linode代购、linode合租、linode推介、linode返佣、linode优惠。日本VPS、美国VPS、海外独立服务器代购均在linode.im。

Categories: linux基础 Tags: ,
  1. No comments yet.
  1. No trackbacks yet.