Skip to content

ls -l detail for Linux

Input

ls -l

Output

-rwxr-xr-x 1 root root 12028816 May 13 22:58 b
  • 第一个字段(1个字符):文件类型
  • 第二个字段(9个字符):权限
  • 第三个字段(1个字符):文件硬链接次数
  • 第四个字段:属主
  • 第五个字段:属组
  • 第六个字段:文件大小(字节byte)
  • 第七个字段:最后一次被修改时间
- :普通文件
d:目录文件
b:块设备文件(block)
c:字符设备文件(character)
l:符号链接(symbolic link)
p:管道文件(pipe)
s:套接字文件(socket)

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try iOS App