Linux chown: Change owner of file/directory

Other language site
ja ja
Google Translate
  • -

    シェア
  • ---

    LINEで送る
  • -

    はてなブックマーク
    ブックマーク
  • -

    pocket
  • -

    rss
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
SNS also distributes articles.
Leave a Reply

*

If you like this article, share it!