Sort Command in Linux with Examples

SORT command in Linux is used to arrange the record in a specific order according to the option used. It helps in sorting the data in the file line by line. SORT command has different features that it follows in the resultant of commands.…

Linux Tail Command with Examples

As the name implies, the tail command is used to display the last values of the content of the file. By default, the last 10 lines are selected. Whereas, we can customize the number of lines by providing the number in the command. Syntax:…

Linux Head Command with Examples

As the name shows, the head command displays the first N lines of data. By default, it is a 10 number but can be customized. It is opposite to the tail command because the tail command helps in displaying the last N lines from the file.…

Linux Export Command with Examples

The export command is a built-in command of the shell. Environmental variables are exported in it as child processes. The existing environment variables are not affected. It is also known as the bash bullets command. The export command…

Linux Source Command with Examples

The source seems to be an integrated shell instruction that reads and executes the contents of a document (commonly a bundle of instructions) that is provided as a parameter within the present shell script. Upon obtaining the contents of…

Linux Pipe Command with Examples

The ‘pipe’ command is used in both UNIX and Linux operating systems. Pipes help combine two or more commands and are used as input/output concepts in a command. In the Linux operating system, we use more than one pipe in command so that the…

How to Write or Edit /etc/fstab

In Linux, there are multiple system configuration files that regulate system behavior. The fstab file is such a configuration file that stores all the information about various partitions and storage devices on the computer. At the time of…

How can I see DPKG and apt history

This tutorial explains how to see dpkg and apt history in Debian-based Linux distributions. After reading this tutorial, you will know how to find information about installed, removed, and upgraded packages using commands apt, dpkg-query,…

How To Use “Truncate” Command In Linux?

Sometimes we need to remove the content of a file without deleting the file; for that Linux operating system offers a command called “truncate”. It is used to extend or reduce the file size. Truncating a file is much quicker and simpler…

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