How To Change The Group Of a File In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To change the group of a file in Linux, you can use the chgrp command. The syntax is as follows:
chgrp <group_name> <file_name>
For example, to change the group of a file named file.txt to the group mygroup, you would use the following command:
chgrp mygroup file.txt