Linux “rm -rf” Command

Linux distributions provide the rm command in order to remove files and directories. The rm command provides a different option which rm -rf is one of the most popular of them. By default, the rm command without any option does not delete a directory with contents. But the “rm -rf” command is used to delete … Read more

Print dmesg Timestamp In Human Readable Format

The dmesg command provides kernel-related messages. While displaying the dmesg messages every message is displayed with a time stamp that is a number. The default dmesg timestamp just consists of numbers without any day, month, or year information. This makes the dmesg message hard to read for humans. There are ways to display dmesg timestamp … Read more

Linux dmesg Command Tutorial

Linux operating system provides the dmesg command in order to display kernel-related messages. The dmesg command provides a lot of different messages as the kernel is the heart of Linux. The dmesg command provides message-related storage, modules, interrupts, etc. As a low-level tool to provide information, the dmesg command requires root privileges. The sudo command … Read more

How To Add Directory To PATH Variable In Linux?

Linux provides different environment variables which $PATH is one of them. The $PATH environment variable is used to store multiple paths or directories that contain commands, and executables. These commands and executables can be called via the command line interface or terminal just using their name without fully providing a complete path. We can add … Read more

Linux Reboot Command

Linux systems generally require very few reboots for reliability and availability. Generally, kernel updates or critical library updates require a reboot. Linux provides the reboot command in order to restart the system. We can use reboot , shutdown and systemctl commands in order to reboot a Linux system or server. Reboot Linux Most Linux distributions … Read more

Change Hostname In Linux

The hostname is used to identify and name a Linux system. The hostname is generally set during the operating system installation process. But the hostname is just a configuration that can be changed or set later In this tutorial we examine different ways and methods to change the hostname in Linux like Debian, Ubuntu, CentOS, … Read more

SCP Command Syntax Tutorial

SCP command or Secure Copy command is used to copy files and directories securely between systems via the network. The SCP command is very popular as it provides single, multiple files and directory copy capabilities via the command line interface. As a powerful command, the SCP command provides different syntaxes for different use cases. In … Read more

Linux cat Command Tutorial

Linux cat Command Tutorial

Linux provides the cat command in order to print file content into the terminal or command line interface. Even though it may seem a simple command the cat command provides different features for different tasks In this tutorial we examine the Linux cat command to print files, display line numbers, create file etc. Display File … Read more

How To Print Range Of Columns Using awk Command?

The awk command is used to edit the command output or text files in a streaming way. The awk command provides a lot of features and commands to print content of the provided text. We can use the awk command in order to print range of columns. Print Range of Columns The print command can … Read more