What is a difference between chown and chmod in Linux?
Experience Level: Junior
Tags: Linux
Answer
The chown command is an abbreviation for “changing owner”, you can use it for changing ownership of files, directories or symbolic links. The chmod command handles what users can do with a file once they have access to it, the chown command assigns ownership.
Related Linux job interview questions
How do you switch back to the last working directory in Linux?
Linux JuniorHow do you autocomplete a command in a Linux terminal?
Linux JuniorWhat is sed command used for in Linux?
Linux JuniorWhat is userdel command used for in Linux?
Linux JuniorWhat is useradd command used for in Linux?
Linux Junior