linux中 ls -l 命令后的一个数字的含义

来源:百度知道 编辑:UC知道 时间:2024/06/17 23:12:19
-rw-r--r-- 1 root root 53K 03-16 08:54 install.log

1代表什么?

链接数

硬链接个数

1个连接数

如果是一个文件,则返回1,如果是一个文件夹则表示文件下的文件或文件夹的总个数。
See this:
leon@leon-desktop:/usr> ls -l /usr/
总计 248
drwxr-xr-x 2 root root 69632 09-09 10:35 bin
drwxr-xr-x 2 root root 4096 2008-12-03 games
drwxr-xr-x 5 root root 4096 2008-12-03 i586-suse-linux
drwxr-xr-x 147 root root 12288 07-23 12:15 include
drwxr-xr-x 6 root root 4096 08-07 18:43 itis
drwxr-xr-x 194 root root 118784 07-23 18:21 lib
drwxr-xr-x 10 root root 4096 2008-12-03 local
drwxr-xr-x 2 root root 16384 09-08 18:37 sbin
drwxr-xr-x 208 root root 4096 08-31 00:27 share
drwxr-xr-x 6 root root 4096 07-22 16:23 src
lrwxrwxrwx 1 root root 10 2008-12-18 tmp -> ../var/tmp
drwxr-xr-x 4 root root 4096 2008-12-03 X11R6
leon@leon-desktop:/usr> ls -l /usr/src/
总计 16
lrwxrwxrwx 1 root root 22 07-22 16:23 linux -> linux-2.6.16.60-0.49.4
drwxr-xr-x 20 root root 4096 07-2