Multiple choice technology

Choose the correct command from following options to change file permissions of File.dat to 'rwxr-xr--'?

  1. chmod 766 File.dat

  2. chmod 655 File.dat

  3. chmod 754 File.dat

  4. Illegal operation requested

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The octal 754 breaks down to rwx (7) for owner, r-x (5) for group, and r-- (4) for others, exactly matching rwxr-xr--. Options A and B give different permissions (766 = rw-rw-rw-, 655 = rw-r-xr-x). Option D is not a valid chmod command.