Free LPI 010-160 Actual Exam Questions - Question 2 Discussion
command
chmod 654 file.txt?
Maybe E makes the most sense since 654 translates to rw- for user, r-x for group, and r-- for others, which matches the permissions shown starting with a dash for a regular file.
E imo, the dash at the start is key—it indicates a regular file, not a directory, so we can drop A and B right away. Then looking at the numeric permissions: 6 means read/write (rw-), 5 means read/execute (r-x), and 4 means read only (r--). Only option E matches that exactly with -rw-r-xr--. The rest either have wrong bits set or wrong file type markers. So it’s gotta be E.
B imo, since the command sets permissions exactly as 6 (rw-), 5 (r-x), and 4 (r--). The leading dash means it’s a regular file, so any option starting with ‘d’ can be ruled out right away. If you break down the numbers correctly, E fits better as it shows rw-r-xr-- which matches 654 perfectly. The others don’t align with the number pattern or have incorrect file type indicators, so E still seems like the solid choice here.
Yeah, the dash means it’s a regular file, so options with 'd' can be tossed. That makes E the only real contender here. Dismiss others based on file type and permissions mismatch. E it is.
Maybe E