{"id":3858,"date":"2012-09-16T20:19:11","date_gmt":"2012-09-16T12:19:11","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3858"},"modified":"2023-04-28T09:48:59","modified_gmt":"2023-04-28T09:48:59","slug":"how-to-fix-bash-man-command-not-found-on-centos-6-3","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-fix-bash-man-command-not-found-on-centos-6-3\/","title":{"rendered":"How to Fix &#8220;-bash: man: command not found&#8221; on CentOS 6.3"},"content":{"rendered":"<p>This quick post shows the step to install &#8220;<strong>man<\/strong>&#8221; command on Linux. In linux CentOS 6.2 and CentOS 6.3 operating system, &#8220;man&#8221; command has not been installed automatically. The Linux command &#8220;<strong>man<\/strong>&#8221; is used to display the manual page for other command and also will help you to explain the functions for the commands that commonly used. The term &#8220;<strong>man<\/strong>&#8221; is short for manual.<\/p>\n<p>If you typed &#8220;man&#8221; command on the linux server that has not been installed with man command, you will get the following message :<\/p>\n<pre>\n[root@centos63 ~]# man tar\n-bash: man: command not found\n<\/pre>\n<p>To install &#8220;<strong>man<\/strong>&#8220;, simply run this command :<\/p>\n<pre>\n[root@centos63 ~]# yum install man -y\nLoaded plugins: fastestmirror, presto, priorities\nLoading mirror speeds from cached hostfile\n * base: centos.ipserverone.com\n * extras: centos.ipserverone.com\n * updates: centos.ipserverone.com\nbase                                                                         | 3.7 kB     00:00\nextras                                                                       | 3.0 kB     00:00\nupdates                                                                      | 3.5 kB     00:00\nupdates\/primary_db                                                           | 2.3 MB     00:19\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package man.i686 0:1.6f-30.el6 will be installed\n--> Processing Dependency: lzma for package: man-1.6f-30.el6.i686\n--> Running transaction check\n---> Package xz-lzma-compat.i686 0:4.999.9-0.3.beta.20091007git.el6 will be installed\n--> Processing Dependency: xz = 4.999.9-0.3.beta.20091007git.el6 for package: xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686\n--> Running transaction check\n---> Package xz.i686 0:4.999.9-0.3.beta.20091007git.el6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package                Arch         Version                                     Repository    Size\n====================================================================================================\nInstalling:\n man                    i686         1.6f-30.el6                                 base         260 k\nInstalling for dependencies:\n xz                     i686         4.999.9-0.3.beta.20091007git.el6            base         137 k\n xz-lzma-compat         i686         4.999.9-0.3.beta.20091007git.el6            base          16 k\n\nTransaction Summary\n====================================================================================================\nInstall       3 Package(s)\n\nTotal download size: 413 k\nInstalled size: 864 k\nDownloading Packages:\nSetting up and reading Presto delta metadata\nProcessing delta metadata\nPackage(s) data still to download: 413 k\n(1\/3): man-1.6f-30.el6.i686.rpm                                              | 260 kB     00:01\n(2\/3): xz-4.999.9-0.3.beta.20091007git.el6.i686.rpm                          | 137 kB     00:00\n(3\/3): xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686.rpm              |  16 kB     00:00\n----------------------------------------------------------------------------------------------------\nTotal                                                               138 kB\/s | 413 kB     00:02\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : xz-4.999.9-0.3.beta.20091007git.el6.i686                                         1\/3\n  Installing : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686                             2\/3\n  Installing : man-1.6f-30.el6.i686                                                             3\/3\n  Verifying  : xz-4.999.9-0.3.beta.20091007git.el6.i686                                         1\/3\n  Verifying  : man-1.6f-30.el6.i686                                                             2\/3\n  Verifying  : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686                             3\/3\n\nInstalled:\n  man.i686 0:1.6f-30.el6\n\nDependency Installed:\n  xz.i686 0:4.999.9-0.3.beta.20091007git.el6 xz-lzma-compat.i686 0:4.999.9-0.3.beta.20091007git.el6\n\nComplete!\n<\/pre>\n<p>Once man command has been installed successfully, you will be able to read the manual pages :<\/p>\n<pre>\n[root@centos63 ~]# man tar\n<\/pre>\n<pre>\nTAR(1)                           User Commands                          TAR(1)\n\nNAME\n       tar - manual page for tar 1.23\n\nSYNOPSIS\n       tar [OPTION...] [FILE]...\n\nDESCRIPTION\n       GNU  \u00e2tar\u00e2  saves  many  files together into a single tape or disk archive, and can\n       restore individual files from the archive.\n\nEXAMPLES\n       tar -cf archive.tar foo bar\n              # Create archive.tar from files foo and bar.\n\n       tar -tvf archive.tar\n              # List all files in archive.tar verbosely.\n\n       tar -xf archive.tar\n              # Extract all files from archive.tar.\n\n..\n..\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This quick post shows the step to install &#8220;man&#8221; command on Linux. In linux CentOS 6.2 and CentOS 6.3 operating system, &#8220;man&#8221; command has not been installed automatically. The Linux&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1554,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1254,1536,1562],"class_list":["post-3858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-centos-6-3","tag-linux","tag-man"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3858"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3858\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1554"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}