In Linux, all files have a specific owner.
The chown command is used to transfer ownership of a file to a specific user.
For example:
chown baransel random.txt
This will make baransel
the owner of random.txt
You can use the ls -l
command to confirm the ownership change.
This will give the following output:
-rw-r--r-- 1 baransel staff 0 May 9 14:48 random.txt