Linux command Stat, view file details

Source: Internet
Author: User

You can view various kinds of specific information of the file: The digital form of the file permission 0664;uid, the number form of the GID's permission, etc.

More Usage Reference Stat--help

Lsattr test.sh to view other properties of a file: read-only, write-only properties, and so on

The Linux chattr command is used to change file properties.

This directive alters the file or directory attributes stored on the ext2 file system, which have the following 8 modes:

  1. A: Make the file or directory available for additional use only.
  2. B: Do not update the last access time of the file or directory.
  3. C: Compress the file or directory and store it.
  4. D: Exclude files or directories from dumping operations.
  5. I: Do not alter the file or directory arbitrarily.
  6. S: Privacy delete files or directories.
  7. S: Update files or directories instantly.
  8. U: Prevent accidental deletion.

Http://www.runoob.com/linux/linux-comm-chattr.html

Linux command Stat, view file details

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.