Send by LINE
B! Bookmarks in Hate-bu
Bookmarks in Pocket
RSS feeds

Linux chown: Change owner of file/directory

Other language site
No available translations found
Google Translate
programing image

Use the chown command to change the owner of a file or directory.

To change the group privilege, use the chown command.

Change owner of sample1.txt to "user1"

chown user1 sample1.txt

Change owner of sample1.txt to "user1" and group to "group1"

chown user1:group1 sample1.txt
Leave a Reply

*