what does terminal command: ls -l show?

后端 未结 3 1813
执笔经年
执笔经年 2020-12-24 05:50

I know that it outputs the \"long\" version but what do each of the sections mean?

On my mac, when I type in

ls -l /Users 

I ge

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 06:21

    If you type the command

    $ man ls
    

    You’ll get the documentation for ls, which says in part:

    The Long Format
    If the -l option is given, the following information is displayed for each file: file mode, number of links, owner name, group name, number of bytes in the file, abbreviated month, day-of-month file was last modified, hour file last modified, minute file last modified, and the pathname. In addition, for each directory whose contents are displayed, the total number of 512-byte blocks used by the files in the directory is displayed on a line by itself, immediately before the information for the files in the directory. If the file or directory has extended attributes, the permissions field printed by the -l option is followed by a '@' character. Otherwise, if the file or directory has extended security information (such as an access control list), the permissions field printed by the -l option is followed by a '+' character.

    The man command is short for “manual”, and the articles it shows are called “man pages”; try running man manpages to learn even more about them.

提交回复
热议问题