The chgrp command is used by users to change the group ownership of files and folders on Linux filesystems. If you’re a student or new user looking for a Linux system to start learning on, the easiest place to start is Ubuntu Linux OS. It’s a great Linux operating system for beginners to start learning Linux. Ubuntu is an open-source Linux operating system that runs on desktops, laptops, servers, and other devices. About chgrp command: The chgrp command is used by users to change the group ownership of files and folders on Linux filesystems. It allows superusers to change and restrict access to files and directories as well. Like using your mouse and keyboard to add and remove users’ access from files and folders in the GUI. the chgrp is the way to do it on the command line. Linux has three major groups which apply for permissions. these are: User — These permissions apply to a single user who has special access to the file. This user is called the owner.Group — These apply to a single group of users who have access to the file. This group is the owning group.Other — These apply to every other user on the system. These users are known as others or the world. When a file is created, the user automatically is assigned ownership of the file. and the group becomes the user’s default group. However, you can use the chgrp command to change the group of each file or folder. Syntax: The syntax is the rule and format of how the chgrp command can be used. the syntax’s options can be reordered. but a straight format must be followed.,. Below is an example syntax of how to use the chgrp command. Options: The command line options are switches or flags that determined how the commands are executed or controlled. they modify the behavior of the command. they are separated by spaces and followed after the commands options. Below are some options for the chgrp command: Examples: Below are some examples of how to run and use the chgrp on Ubuntu Linux. If you want to change the ownership of a file named Confidential.txt, to the group name Private, you run the commands below. If you want to change the group ownership of all files and folders in the /office/files directory to the Staff group, you run the commands below: The commands above change the owning group of /office/files, and all sub-directories, to the group Staff. If you’re not logged in as a root account, you may have to use the sudo command. To change the ownership and group of an entire directory, including sub-directories, you add the -R option. When you run chgrp with the –help option, you’ll see the help text below: That’s it! Hope you like it and please come back soon for more Ubuntu Linux commands!