How to Set Hostname Using Hostnamectl Command?

The hostname is an identity of the system and is used by the networks to search the system. The “hostnamectl” is a Linux command that is used to set the hostname in the terminal without even opening and editing in the etc/hostname file of…

How to remove a directory in Linux

Performing CRUD Operations in Linux are daily routine tasks like creating, reading, updating, and deleting a file or directory. This post will walk through a detailed guide on how to remove a directory in Linux from the terminal. Removing…

Linux hdparm Command Tutorial

In Linux-type systems, the “hdparm” command tool is used to provide the interface for kernel-supported devices. It is to display the drive disk statistics and set hardware parameters and testing performance. This utility allows the user to…

How to remove blank lines in a file in Linux

Blank lines are not always desirable, and you might feel the need to leave them out and only remain with the lines that contain text. Linux offers a couple of text manipulation expressions that you can use to omit or remove blank lines.…

How to shut down your Linux system

Linux comes with different utilities that allow the device to be rebooted, stopped, or turned off by a system administrator. To run commands, one must be a root or group member. The “shutdown” is employed to shut down and restart our…

How to Run Linux “getent” Command

In the Linux operating system, tons of command-line tools are used to get user’s details from a database. So, here’s one of the commands, which is called “getent”. The “getent” is a short form of “get entries from the administrative…

How to Work with Linux Expr command

The “expr” is a Linux command-line utility that evaluates and displays the output of an expression. It calculates integer and string expressions, including regular expressions that fit patterns. It stops the invoking command-line shell…

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More