--- layout: page category-page: basic category-title: Basic commands author: Joy Albertini tags:directory file chown symbolic link title: chown ---

The chown If you want to change the user ID of a specific file, you can use chown.
Device-name:Current-position username$ chown owner[:group] file
Example chown Joy:student alice.txt add Joy to the group student
Use chgrp [:group] file to create a group for a file
Use Sudo chown owner[:group], if you need root permission for add the user to the group

chown user [group] file1 file2 ...