Multiple choice

Which command changes file ownership?

  1. chmod

  2. chown

  3. run

  4. set

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

The chown command (change owner) is used to change the user and/or group ownership of a file or directory. The chmod command is used to change file permissions, not ownership.