linux命令系列 ls

ls是linux中最常用的命令之一

ls 的功能是list directory contents,其常用的选项如下:

(1) -l   use a long listing format(长格式,显示完整信息)

   文件类型:

     -: 普通文件

     d: 目录文件(directory)

     b: 块设备文件(block)

     c: 字符设备文件(character)

     l: 符号链接文件(symbolic link file)

     p: 命令管道文件(pipe)

     s: 套接字文件(socket)

   文件权限: 9位,每3位一组 rwx

   文件硬链接的次数

   文件的属主(owner)

   文件的属组(group)

   文件的大小(size):默认单位是字节

   时间戳(timestamp)

     - 访问 access

     - 修改 modify  指改变文件内容

     - 改变 change 指改变文件metadata

(2)-h, --human-readable with -l, print sizes in human readable format (e.g., 1K 234M 2G)

(3)-a, --all, do not ignore entries starting with .

  “.“  当前目录

  “..“ 父目录

(4) -d, --directory, list directories themselves, not their contents

(5)-i, --inode, print the index number of each file

(6)-r, --reverse reverse order while sorting

(7)-R, --recursive list subdirectories recursively

 

   

    

转载于:https://www.cnblogs.com/z-joshua/p/10031827.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值