chown command in Linux with Examples

chown command mean Change an owner of a file and/or the group the file is associated with.

Syntax

chown [OPTION]… [OWNER][:[GROUP]] FILE…
chown [OPTION]… –reference=RFILE FILE…

In man page the describe it

  • chown – change file owner and group.
  • man chown – More details information about chown command.

chown command in Linux with Examples

$ chown huupv:huupv mydevops.txt

Conclusion

chown command is the simple the command in Linux. It is the most popular in use terminal Linux change file owner and group.

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.