Linux-ls-listing the details of a file

Source: Internet
Author: User

1.ls-l listing the details of a file


-rw-r--r--1 root root 13572 zabbix-release-3.4-2.el7.noarch.rpm
-rw-r--r--: Permissions
1: Multiple files using the same inode (for example: 1 files using the same inode)
Previous root: Indicates the owner.
Post Root: The owning group. There will be multiple users under the group
13572: Indicates file size, Unit B remark: 14k=13572b
Ls-l out of the unit is B
LS-LH out of the unit is KB

28 2017: Time
zabbix-release-3.4-2.el7.noarch.rpm: File name

Inode: Information that stores files, such as: File attributes, file permissions, file owners, special groups of files, file size, file time.
The record file is stored on which area on the hard disk.
For example: Two files use the same inode, which means that the two files are in the same location as the data blocks stored on the disk.
2. View Inode number
Ls-i file name

[Email protected]_0_11_centos ~]# ls-i zabbix-release-3.4-2.el7.noarch.rpm
475144 zabbix-release-3.4-2.el7.noarch.rpm
475144: Inode number expressed as zabbix-release-3.4-2.el7.noarch.rpm
3.ls-la view all hidden files.

To. Begins with a hidden file or directory.

Each directory will have "." ".."
".": Represents the current directory.
"...": Represents the parent directory.
4.ls-lat in the order of time, do ascending, the nearest actual more upward.

5.ls-ld only lists information about the directory itself.

6.ll = Ls-l

Linux-ls-listing the details of a file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.