Ý nghĩa của kết quả ls -l

0
Bài viết này sẽ giải thích ý nghĩa của các thông số đầu ra của lệnh ls - l trong Linux

Ý nghĩa của kết quả ls -l

Ví dụ một đầu ra;
-rwxrw-r--    1    root   root 2048    Jan 13 07:11 afile.exe
  • Quyền của file,
  • Số lượng liên kết,
  • Chủ sở hữu,
  • Tên nhóm sở hữu,
  • Kích thước,
  • time of last modification, and
  • file/directory name
File permissions is displayed as following;
  • first character is - or d, d indicates a directory, a line represents a file
  • three sets of characters, three times, indicating permissions for owner, group and other:
    • r = readable
    • w = writable
    • x = executable
In your example -rwxrw-r--, this means the line displayed is:
  • a regular file (displayed as -)
  • readable, writable and executable by owner (rwx)
  • readable, writable, but not executable by group (rw-)
  • readable but not writable or executable by other (r--)
Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

buttons=(Accept !) days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !