The regular file report.txt has mode 640.
Ignore special bits and ACLs.
Which description is correct?
Numeric modes use owner, group, and other in order, with r=4, w=2, and x=1. Mode 640 is rw-r-----.
Detailed explanation
Incorrect. 6 is rw-, but 4 is r-- rather than rw-.
Incorrect. 6 is rw-, but 4 is r-- rather than rw-.
Correct. 640 means owner rw-, group r--, and others ---.
Correct. 640 means owner rw-, group r--, and others ---.
Incorrect. 7 would be rwx for the owner, not 6.
Incorrect. 7 would be rwx for the owner, not 6.
Incorrect. The 4 belongs to the group field, not others.
Incorrect. The 4 belongs to the group field, not others.
Try it yourself
An example you can run in a temporary verification environment.
stat --format=%A /etc/passwdExpected result
先頭のファイル種別に続いて所有者・グループ・その他の権限を表示するKey points
- r equals 4
- w equals 2
- x equals 1
Notes
- Environment: GNU coreutils 9.x
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.