Linux学习(一)

  1. ls[选项][文件或目录]
    选项:
-a 显示所有文件,包括隐藏文件
-l 显示详细信息
-d 查看目录属性
-h 人性化显示文件大小,以1024为单位自动显示KB,MB,GB,TB-i 显示inode
[root@iz2ze1hfsw4ztunoybeosxz /]# ls
bin   dev  home  lib64       media  opt   root  sbin  sys  usr
boot  etc  lib   lost+found  mnt    proc  run   srv   tmp  var

[root@iz2ze1hfsw4ztunoybeosxz /]# ls -a
.   .autorelabel  boot  etc   lib    lost+found  mnt  proc  run   srv  tmp  var ..  bin dev   home  lib64  media  opt  root  sbin  sys  usr

[root@iz2ze1hfsw4ztunoybeosxz /]# ls -l
总用量 60
lrwxrwxrwx   1 root root     7 724 13:30 bin -> usr/bin
dr-xr-xr-x.  4 root root  4096 724 13:34 boot
drwxr-xr-x  20 root root  3020 115 2016 dev
drwxr-xr-x. 83 root root  4096 724 13:32 etc
drwxr-xr-x.  2 root root  4096 115 2016 home
lrwxrwxrwx   1 root root     7 724 13:30 lib -> usr/lib
lrwxrwxrwx   1 root root     9 724 13:30 lib64 -> usr/lib64
drwx------.  2 root root 16384 224 10:58 lost+found
drwxr-xr-x.  2 root root  4096 115 2016 media
drwxr-xr-x.  2 root root  4096 115 2016 mnt
drwxr-xr-x.  2 root root  4096 115 2016 opt
dr-xr-xr-x  73 root root     0 115 2016 proc
dr-xr-x---.  6 root root  4096 724 18:00 root
drwxr-xr-x  23 root root   640 724 13:34 run
lrwxrwxrwx   1 root root     8 724 13:30 sbin -> usr/sbin
drwxr-xr-x.  2 root root  4096 115 2016 srv
dr-xr-xr-x  13 root root     0 115 2016 sys
drwxrwxrwt.  8 root root  4096 725 03:32 tmp
drwxr-xr-x. 13 root root  4096 724 13:30 usr
drwxr-xr-x. 19 root root  4096 724 13:30 var

[root@iz2ze1hfsw4ztunoybeosxz /]# ls -lh
总用量 60K
lrwxrwxrwx   1 root root    7 724 13:30 bin -> usr/bin
dr-xr-xr-x.  4 root root 4.0K 724 13:34 boot
drwxr-xr-x  20 root root 3.0K 115 2016 dev
drwxr-xr-x. 83 root root 4.0K 724 13:32 etc
drwxr-xr-x.  2 root root 4.0K 115 2016 home
lrwxrwxrwx   1 root root    7 724 13:30 lib -> usr/lib
lrwxrwxrwx   1 root root    9 724 13:30 lib64 -> usr/lib64
drwx------.  2 root root  16K 224 10:58 lost+found
drwxr-xr-x.  2 root root 4.0K 115 2016 media
drwxr-xr-x.  2 root root 4.0K 115 2016 mnt
drwxr-xr-x.  2 root root 4.0K 115 2016 opt
dr-xr-xr-x  73 root root    0 115 2016 proc
dr-xr-x---.  6 root root 4.0K 724 18:00 root
drwxr-xr-x  23 root root  640 724 13:34 run
lrwxrwxrwx   1 root root    8 724 13:30 sbin -> usr/sbin
drwxr-xr-x.  2 root root 4.0K 115 2016 srv
dr-xr-xr-x  13 root root    0 115 2016 sys
drwxrwxrwt.  8 root root 4.0K 725 03:32 tmp
drwxr-xr-x. 13 root root 4.0K 724 13:30 usr
drwxr-xr-x. 19 root root 4.0K 724 13:30 var

[root@iz2ze1hfsw4ztunoybeosxz /]# ls -li
总用量 60
     14 lrwxrwxrwx   1 root root     7 724 13:30 bin -> usr/bin
1851393 dr-xr-xr-x.  4 root root  4096 724 13:34 boot
      3 drwxr-xr-x  20 root root  3020 115 2016 dev
 540673 drwxr-xr-x. 83 root root  4096 724 13:32 etc
2457601 drwxr-xr-x.  2 root root  4096 115 2016 home
     17 lrwxrwxrwx   1 root root     7 724 13:30 lib -> usr/lib
     13 lrwxrwxrwx   1 root root     9 724 13:30 lib64 -> usr/lib64
     11 drwx------.  2 root root 16384 224 10:58 lost+found
 753665 drwxr-xr-x.  2 root root  4096 115 2016 media
1564673 drwxr-xr-x.  2 root root  4096 115 2016 mnt
2375681 drwxr-xr-x.  2 root root  4096 115 2016 opt
      1 dr-xr-xr-x  73 root root     0 115 2016 proc
1556481 dr-xr-x---.  6 root root  4096 724 18:00 root
   6586 drwxr-xr-x  23 root root   640 724 13:34 run
     15 lrwxrwxrwx   1 root root     8 724 13:30 sbin -> usr/sbin
1802241 drwxr-xr-x.  2 root root  4096 115 2016 srv
      1 dr-xr-xr-x  13 root root     0 115 2016 sys
 819201 drwxrwxrwt.  8 root root  4096 725 03:32 tmp
1507329 drwxr-xr-x. 13 root root  4096 724 13:30 usr
2015233 drwxr-xr-x. 19 root root  4096 724 13:30 var
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值