Basic Commands and Simple Shell Scripts
98
man pagesThe most common resource used
to obtain documentation is manual pages, also referred to by the command used to invocate them man.
Almost any utility installed in the system has a man page to help you use it (in other words, specifying all the options for the tools and what they do. You can run man tar and check the output:
[root@rhel-instance
]# man tarTAR(1) GNU TAR Manual TAR(1)NAME tar - an archiving utilitySYNOPSIS Traditional usage tar {A|c|d|r|t|u|x}[GnSkUWOmpsMBiajJzZhPlRvwo] [ARG...] UNIX-style usage tar -A OPTIONS ARCHIVE ARCHIVE tar -cf ARCHIVE OPTIONS [FILE...] tar -d f ARCHIVE OPTIONS [FILE...]You can see in it (navigate with the arrow keys, the space bar, or Page Up and Page Down) and exit it by hitting q (for quit).
There are sections within the man page on related topics. It is pretty simple to search those by using the apropos command. Let’s see this for tar:
[root@rhel-instance
]# apropos tardbus-run-session (1) - start a process as anew D-Bus sessiondnf-needs-restarting (8) - DNF needs_restarting Plugindracut-pre-udev.service (8) - runs the dracut hooks before udevd is startedgpgtar (1) - Encrypt or sign files into an archivegtar (1) - an archiving utilityopen (1) - start a program on anew virtual terminal (VT).Share with your friends: