How to View Colored Man Pages in Linux – Guide

A man page is a documentation for a terminal-based program, tool, or utility on Unix-like operating systems. It includes information such as the name of the program, its command line arguments, and possible options. The author and copyright information can also be found in this document.

How to Display Colored Man Pages in Linux

df -h This will display the man page for the df command: df -h ..

The default man program output is usually formatted in a way that makes it easy to read, and the default view is usually white for all types of text.

You can make some tweaks to your ~/.bashrc file to get really colorful man pages by specifying a color scheme using various LESS_TERMCAP variables. For example, you could use the LESS_TERMCAP variable to specify that all man pages should be in a blue color, or to change the default color for a specific program.

The following color scheme variables can be used to change the overall look of a document. The following color scheme variables can be used to change the overall look of a document. -Color Scheme: Black & White

The terminal color escape sequences are e[1;32m, e[1;32m, e[0m, and e[0m. The color escape sequence for the end of a line is ;. ..

The following are the color codes we used in the configuration above. 1: black 2: blue 3: green 4: yellow

The escape codes used in the above configuration are: Escape code 1: “0023” Escape code 2: “0123” Escape code 3: “0200”

To view a man page for the df command, you can reset your terminal by typing reset or even start up another shell. Now when you try to view a man page for the df command, it should look better than the default view. ..

MOST is a paging program that works on Unix-like operating systems and supports multiple windows.

Debian/Ubuntu: sudo apt install most #Debian/Ubuntu # yum install most #RHEL/CentOS # dnf install most #Fedora 22+ CentOS/RHEL: sudo yum install most # CentOS/RHEL # dnf install most #Fedora 22+

alias ll=‘ls -lh’ ..

Final note

If you’re looking for a way to view colored man pages in Linux, this guide can help. In case you have any questions about it, feel free to ask us. Plus, please share this guide with your friends if you like it! ..