Chown basics on linux

Change the owner of files on a linux machine.

Basic snytax is.

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

So you could do.

chown ian file.txt

Or just change the group.

chown :devs file.txt

You can change it recursively too.

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