Question:

To change group ownership, which of the following command will be used?

Show Hint

Use chgrp to change the group owner without affecting user ownership or permissions.
  • chown
  • id
  • chmod
  • chgrp
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

The \texttt{chgrp} command in Linux/Unix is used to change the group ownership of a file or directory.
  • \texttt{chown} changes the owner (user) of a file.
  • \texttt{chmod} changes the permissions of a file.
  • \texttt{id} displays the current user and group information.
  • \texttt{chgrp} specifically modifies the group ownership.
Example usage: \[ \texttt{chgrp newgroup filename} \]
Was this answer helpful?
0
0

Questions Asked in CBSE CLASS XII exam

View More Questions