{"id":12050,"date":"2021-11-18T05:26:08","date_gmt":"2021-11-18T05:26:08","guid":{"rendered":"https:\/\/linuxways.net\/?p=12050"},"modified":"2024-03-25T02:10:46","modified_gmt":"2024-03-25T02:10:46","slug":"man-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/man-command-in-linux\/","title":{"rendered":"man command in Linux"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Linux is a complex operating system with many commands and each command has many different use cases. Remembering them is a difficult thing and that&#8217;s why the man command was born. man stands for manual, it teaches you how to use the commands available in Linux with full information for users&#8217; reference.<\/p>\n<p>And we will show you how to check the manual by using the man command in Linux as you go through it below.<\/p>\n<h2>The syntax of man command<\/h2>\n<pre>\r\n$ man [option]... [command]...<\/pre>\n<h2>Options<\/h2>\n<p><strong>1. No option<\/strong>: show command manual<\/p>\n<pre>\r\n$ man [command]\r\n<\/pre>\n<p>For example, I want to see the manual of the mkdir command:<\/p>\n<pre>\r\n$ man mkdir\r\n<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"636\" class=\"wp-image-12055\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-255.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-255.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-255-300x183.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-255-1024x625.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-255-768x469.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>2. num<\/strong>: specifies the display of a specific section of the manual.<\/p>\n<pre>\r\n$ man [num] [command]\r\n<\/pre>\n<p>For example, I want to show part 2 of the mkdir command:<\/p>\n<pre>\r\n$ man 2 mkdir\r\n<\/pre>\n<p>Output:<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"636\" class=\"wp-image-12056\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-256.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-256.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-256-300x183.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-256-1024x625.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-256-768x469.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>3. -f<\/strong>: show function of command<\/p>\n<pre>\r\n$ man -f [command]\r\n<\/pre>\n<p>For example, I want to show the function of the cat command:<\/p>\n<pre>\r\n$ man -f cat\r\n<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"75\" class=\"wp-image-12057\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-257.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-257.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-257-300x22.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-257-1024x74.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-257-768x55.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>4. -a<\/strong>: show all manual intro<\/p>\n<pre>\r\n$ man -a [command]\r\n<\/pre>\n<p>For example:<\/p>\n<pre>\r\n$ man -a intro\r\n<\/pre>\n<p>Output:<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"228\" class=\"wp-image-12058\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-258.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-258.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-258-300x66.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-258-1024x224.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-258-768x168.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>5. -k<\/strong>: searches for the specified command as a regular expression<\/p>\n<pre>\r\n$ man -k [command]\r\n<\/pre>\n<p>For example:<\/p>\n<pre>\r\n$ man -k ls\r\n<\/pre>\n<p>Output:<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"332\" class=\"wp-image-12059\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-259.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-259.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-259-300x96.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-259-1024x326.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-259-768x245.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>6. -w<\/strong>: returns the position of the command<\/p>\n<pre>\r\n$ man -w [command]\r\n<\/pre>\n<p>For example:<\/p>\n<pre>\r\n$ man -w mkdir\r\n<\/pre>\n<p>Output:<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"72\" class=\"wp-image-12060\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-260.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-260.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-260-300x21.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-260-1024x71.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-260-768x53.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<h2><a id=\"post-12050-_fux1rh9bj2gc\"><\/a>Conclusion<\/h2>\n<p>Hope you understood the tutorial on how to use the man command in Linux.<\/p>\n<p>Thanks for reading!<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction Linux is a complex operating system with many commands and each command has many different use cases. Remembering them is a difficult thing and that&#8217;s why the&hellip;<\/p>","protected":false},"author":110,"featured_media":12061,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,165,2],"tags":[35],"class_list":["post-12050","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-red-hat","category-ubuntu","tag-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12050"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12050\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12061"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}