pr command in Linux Last Updated : 28 Jan, 2022 Comments Improve Suggest changes Like Article Like Report In Linux/Unix pr command is used to prepare a file for printing by adding suitable footers, headers, and the formatted text. pr command actually adds 5 lines of margin both at the top and bottom of the page. The header part shows the date and time of the last modification of the file with the file name and the page number. Syntax: pr [options][filename]Working with pr command 1. To print k number of columns we use -k. Let's say, we have a file that contains 10 numbers from 1 to 10 with every number in a new line. Now if we want to print this content in 3 columns we will use the following command. pr -3 abc.txt here abc.txt is the name of file. 2. To suppress the headers and footers the -t option is used. pr -t abc.txt After executing the above command it will give us the following output. 3. To Double the paces input, reduces clutter -d option is used. pr -d abc.txt After executing the above command it will give us the following output. 4. To provide number lines which helps in debugging the code -n option is used. pr -n abc.txt After executing the above command it will give us the following output. 5. To print the version number of the command --version is used. pr --version After executing the command, it will return us the version in the below mentioned format. 6. To open the help section of the command or to get the details of all the options and attributes of the command --help is used. pr --help After executing the command, it will return us the help section in the following way. Comment More infoAdvertise with us Next Article Linux Commands Cheat Sheet H hupphurr Follow Improve Article Tags : Linux-Unix Similar Reads Linux command in DevOps DevOps engineers use Linux every day because itâs free, fast, and easy to customize. More importantly, most DevOps tools like Docker, Kubernetes, Ansible, Terraform, and Jenkins are built to run best on Linux.In DevOps, you often work on cloud servers (like AWS, Azure, or Google Cloud), and most of 10 min read nproc Command in Linux with Examples nproc It is a simple Unix command which is used to print the number of processing units available in the system or to the current process. This command could be used in system diagnostics and related purposes. It is part of GNU Core utils, so it comes pre-installed with all modern Linux operating sy 3 min read pmap command in Linux with Examples The pmap command in Linux is a powerful utility used to display the memory map of a process. A memory map provides insight into how memory is allocated and distributed within a running process. This can be incredibly useful for developers and system administrators when debugging memory issues, optim 3 min read Linux Commands Cheat Sheet Linux, often associated with being a complex operating system primarily used by developers, may not necessarily fit that description entirely. While it can initially appear challenging for beginners, once you immerse yourself in the Linux world, you may find it difficult to return to your previous W 13 min read Basic CentOS Linux Commands in linux CentOS is a free and open-source operating system that aims to provide a stable reliable, and community-supported platform for servers and other enterprise applications. In this article, we will be covering CentOS Linux basics commands and functions of CentOS and also we will look into the advanced 4 min read uname command in Linux with Examples Linux, renowned for its open-source flexibility and powerful performance, offers a range of commands that reveal the inner workings of your system. Among these, the 'uname' command stands out as a versatile tool that provides key details about your Linux machine. Here, we will learn the basics of th 4 min read Like