which command is used to change group?

Answer Posted / rhino

"chgrp" -- is the command used to change the group of a
file . Only the owner of a file can change its group, and
can only change it to a group of which he is a member.

chgrp -R testgrp .

change the ownership of this directory to group 'testgrp'
and everything inside of it (-R = recursive). The person
issuing this command must own all the files or it will fail

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

966


What are awk commands?

587


What does the command '$ls | wc –l > file1' do?

686


What difference between cmp and diff commands?

729


What does grep v grep do?

557






Is grep faster than awk?

570


What are the unix commands?

560


How do I clear my terminal history?

588


Enumerate some of the most commonly used network commands in unix?

622


Name the unix command to find how many days the server has been up.

612


Enlist some filename manipulation commands in unix.

556


What are the commands in UNIX to list the files in a Directory?

622


What is the difference between cat command and more command?

603


What command is used to switching between users in unix?

566


What is nr in awk command?

611