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
Ví dụ một đầu ra;
Ý 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
- 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
-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--)