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

What Is “awk ‘{print $1}'”?

What Is "awk '{print $1}'"?

The awk is a very powerful command or interpreted scripting language to process different text or string data. The awk is generally used to process command output or text or configuration files. The awk provides ‘{print $1}’ command in order to print the first column for the specified file or output. In this tutorial, we … Read more

How To Force Remove Directory In Linux?

Linux provides the rmdir command in order to delete a directory. But while using the rmdir command we may get an error like “rmdir: failed to remove ‘nmap’: Directory not empty”. This is caused by a non-empty directory that contains child directories and files. But we can remove this directory by forcing removal with different … Read more

Bash Concatenate Strings Tutorial

Bash provides very similar features to the programming languages. Concatenating strings are one of the most popular features of the bash. The string concatenation is simply joining multiple strings together or adding all strings into the first string. There are different methods for concatenating strings in bash and we will examine some of them. Concatenate … Read more

Move Directory In Linux

Move Directory In Linux

Directories are used to store other directories and files in a hierarchycal way. Some time we may need to move directories to the different paths or inside another directory. Linux provides the mv command in order to move directories. There are different ways to move directories in Linux like multiple move, verbose move, approve every … Read more