Posts

Showing posts with the label Linux Commands

Change Group Ownership in Linux with the chgrp Command

#  Change Group Ownership in Linux is a useful tool for changing the group ownership of files and directories. In this post, we'll cover what the chgrp command is, how to use it, and some examples of its usage. To change the group ownership of a file or directory in Linux using the chgrp command, follow these steps: What is the chgrp command? In Linux, every file and directory has an owner and a group associated with it. The owner of the file is responsible for its contents, while the group ownership is used to control access to the file by other users. The chgrp command is used to change the group ownership of a file or directory. How to use the chgrp command to  Change Group Ownership Open a terminal or shell on your Linux system. The basic syntax of the chgrp command is as follows: chgrp [OPTIONS] GROUP FILE Where GROUP is the name of the group you want to change the ownership to, and FILE is the name of the file or directory you want to change the ownership of. Some common op

Mastering System Monitoring with htop on Linux: Installation and Usage Guide

Image
In this tutorial, we'll explore the installation and utilization of the 'htop' command in Linux . Htop is a powerful and user-friendly command-line tool that provides an interactive process viewer, allowing users to monitor system resources and manage processes with ease. Let's delve into the steps for installing and leveraging this handy utility.   Install htop command Linux in Linux If your use Debian/Ubuntu, The following command line below: sudo apt install htop or, If your use Fedora/RHEL/CentOS sudo dnf install htop One your done with the installation, In the terminal the basic you use htop command CPU usage bar     Memory bar Green : Memory being utilized by system processes. Blue : Memory used by buffer pages. Orange : Memory allocated for cache pages. Sort processes based on Resource Consumption  Press F6 as the picture below: Search for a specific process Press F3 and you a search prompt as show below: Filter ongoing processes Press F4 and you a search prompt