Chown basics on linux

Change the owner of files on a linux machine.

SNP 004 #523 Filed cmd

Basic snytax is.

shell
chown [OPTIONS] USER[:GROUP] FILE/DIRECTORY

So you could do.

shell
chown ian file.txt

Or just change the group.

shell
chown :devs file.txt

You can change it recursively too.

shell
chown -R ian:devs /home/ian/folder