Problem Statement
Which command changes the ownership of a file in Linux?
Explanation
chown means 'change owner'. It allows an administrator to change the file owner and optionally its group.
Only the root user or the file’s current owner can modify ownership permissions.
Code Solution
SolutionRead Only
sudo chown ubuntu:devops app.log
Practice Sets
This question appears in the following practice sets: