Posts

Change Group Ownership in Linux with the chgrp Command

Image
Changing the group ownership of files and directories in Linux is an essential task for managing file access among different users. This guide will introduce you to the chgrp command, explain how to use it, and provide practical examples. Understanding the chgrp Command In Linux, files and directories are assigned an owner and a group. The file's owner manages its contents, while the group ownership determines the file's access permissions for group members. The chgrp command is a tool for modifying the group associated with a file or directory. How to Use the chgrp Command for Changing Group Ownership To modify the group ownership of a file or directory with the chgrp command, here’s what you need to do: Open your Linux system's terminal or shell. Use the chgrp command with the following syntax: chgrp [OPTIONS] GROUP FILE Replace GROUP with the target group name and FILE with the file or directory whose group ownership you wish to change. Key Options for the chgrp Command

How to Install Adminer on Ubuntu for Efficient Database Management

Image
 In this tutorial, we will Install Adminer on Ubuntu.  Adminer is a database management tool that allows you to mangage multiple types of databases.  It is similar to other tools such as phpMyAdmin and offers features such as data browsing, editing, and SQL command execution.  You can download the latest version of Adminer from the official website at https://www.adminer.org /. To install Adminer on Ubuntu, you can follow these steps: How does Adminer work ? Adminer works by providing a web-based interface for managing databases. When you access Adminer through a web browser, it connects to the specified database and displays a set of tools for managing the data and structure of the database. Some of the main features of Adminer include: Data browsing: Adminer allows you to view and search through the data in the tables of your database, including the ability to sort and filter the data. Data editing: You can use Adminer to add, edit, and delete records in your database tables, as well

How to check Disk is SSD or HDD on Linux

Image
Introduction In this tutorial, How to check Disk is SSD or HDD on Linux . Solid-state drives (SSDs) are fast, silent, and less prone to failure than traditional hard disk drives (HDDs). HDD store information on a rotating disk known as a platter SSD use flash memory to store and persist data. lsblk Command: Purpose: Lists all available block devices along with detailed information. Output Details: Displays device names, mount points, size, and type. Use Case: Helps system administrators quickly overview the system's disk layout. Options: Offers options to include or exclude specific details or device types. cat Command: Purpose: Displays the content of files or concatenates files. Primary Use: Commonly used to view contents of small files. Concatenation: Can merge several files into one, e.g., cat file1 file2 > combinedfile. Flexibility: Useful for displaying file contents quickly or for file manipulation. Using lsblk command to check HDD or SSD lsblk -o name,rota | tail If you

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