Tag Info

Hot answers tagged

48

The help command when is used with -m option can display information about builtin commands in pseudo-manpage format. For example: help -m cd | less will display information about cd command in a format almost exactly like in a manual page. Starting from this command you can wrap man command in one function in your .bashrc file as follow: man () { ...


38

Just hit /, and type your search pattern. Patterns can be regular expressions, for example, you could search for the word "option" by typing /[Oo]ption Or find all of the long arguments with /(--)[a-Z] To cancel the search, hit Ctrl+C. Some useful quantification operators are: ? for zero or one of the preceding expression * for zero or more ...


30

Man pages are the UNIX traditional way of distributing documentation about programs. The term "man page" itself is short for "manual page", as they correspond to the pages of the printed manual; the man pages "sections" (1 for commands, 2 for system calls, etc.) correspond to sections in the full UNIX manual. Support is still there if you want to print a ...


30

Using the man program Looking at the manpage of man, man man There is the -H option, or its equivalent --html which will generate the HTML for the manual and open them in the browser. This option will cause groff to produce HTML output, and will display that output in a web browser. The choice of browser is determined by the optional browser ...


27

About UNIX(7) To answer your question of "UNIX(7)", this is standard convention of saying "The man page for UNIX in section 7 (miscellaneous)". To open a page like init(8), you would use this command: man 8 init. man regex vs man 7 regex To answer your question of the 'subtle differences' between man regex and man 7 regex: man by default opens the ...


27

Use this function in .bashrc: man () { yelp "man:$@"; } Source


19

With the help of Gmanedit you are able to create manpages with a graphical GUI. Gtk+ Manpages Editor is an editor for man pages that runs on X with GTK+. Gmanedit is an application which allows you to edit manual pages (man) on Linux/Unix systems. It is like most common HTML editors but more easy. You need to know manpages format. ...


19

man bash-builtins This contains help snippets for the builtin commands, albeit in a slightly more condensed format than the help equivalent.


18

Type the below command on terminal: man grep Then type slash character, /, and write your search, like -i, followed by Enter. This will position the cursor at the first occurrence of the search string. Pressing n moves the cursor to the next occurrence. Pressing Shift+n moves the cursor to the previous occurrence.


17

When inside of the document viewer through the man command, press h or H in order to view the man's help. From man's help screen: JUMPING g < ESC-< * Go to first line in file (or line N). G > ESC-> * Go to last line in file (or line N). p % * Go to beginning of file (or N percent into file). Another ...


14

These 2 are almost the same: export PATH=/usr/share/lib/something:$PATH export PATH=$PATH:/usr/share/lib/something The only difference is that the first one puts the directory to add in front and the second one puts it behind the current directories in $PATH. It only matters if there are commands inside /usr/share/lib/something that have the same name ...


13

To view a manual page related to a package, open a terminal (press Ctrl+Alt+T together) and type: man <package_name> For example, to view grep's manual page, type: man grep This will open the manual page referring to the section numbers in the order: 1 2 3 4 5 6 7 If you want to open the manual page of a specific section, type: man ...


12

The section numbers man will show the manpage from any section, man 7 will show the manpage from section 7. So, here 7 refers to the section of the particular command for which you are looking for the manual page. A section, if provided, will direct man to look only in that section of the manual. The sections See the following table for ...


11

You can quit man (which uses less) by pressing q.


10

Try this simple sed command, $ man grep | sed -n '/-i, --ignore-case/,+2p' -i, --ignore-case Ignore case distinctions in both the PATTERN and the input files. (-i is specified by POSIX.) Explanation: sed -n '/-i, --ignore-case/,+2p' |<-Search pattern->| It will print the line which contains the ...


10

You can install manual pages about using a POSIX system for development as, sudo apt-get install manpages-posix-dev It will provide man pages for shell builtins. $ type cd cd is a shell builtin Now try, $ man cd CD(P) POSIX Programmer's Manual CD(P) NAME cd - change the working directory SYNOPSIS cd ...


10

man can actually do a lot of this on its own. You just need to install groff and then you can use the H flag. sudo apt-get install groff man -Hfirefox bash


9

Unfortunately, this is a bug affecting Ubuntu 13.10 and 14.04: Bug #1242108: all zsh manpages are missing It looks like the only thing we can do about it right now is to get the man pages from the source. Get the appropriate version of the source code from sourceforge (for Ubuntu 14.04 you need version 5.0.2, otherwise check using zsh --version) then ...


9

Open Profile Preferences from Terminal global Edit menu and under "Colors" tab you will see like this: The problem is that your "Background color" and "Bold color" are the same color. Change one of them to different one OR You can check the "Same as text color" for bold color to fix that.


9

Install the package named language-pack-<two letter language code> e.g. sudo apt-get install language-pack-es for Spanish Install the package named manpages-<two letter language code> e.g. apt-get install manpages-es for Spanish man pages. Set your LANG environment variable to <language>_<country>.<encoding>, e.g. ...


8

This bash command will dump HTML files for every man page on the system. You'll need to install the groff package first, then cd to an empty directory and run: for f in `ls -1 /usr/share/man/man*`; do n=`echo $f | sed s/[.].*[.]gz//`; man -Thtml $n > $n.html ; done This will cycle through all of the files in the /usr/share/man directory, strip off the ...


8

The authoritative reference is the Debian policy manual: http://www.debian.org/doc/debian-policy/ Quoting the manual: The Recommends field should list packages that would be found together with this one in all but unusual installations. Suggests: This is used to declare that one package may be more useful with one or more others. Using this field tells ...


8

For the man command, as you say, use /YOUR_SEARCH to find the first occurance of YOUR_SEARCH and then n to get to the next one. Use N to move to the previous occurrence. For the info command, type s to search, then enter your search term or regex. It will bring you to the first occurrence. To move to the next match, type }, to move to the previous ...


8

You can install libstdc++6-4.5-doc to get the manuals for the GNU c++ library, and then man std_basic_string tells you about the contents of that class. You may ask: how should I know to look in that particular manpage? Well, what you want is the -k (keyword) argument to man: mbp@joy% man -k c_str .... std_basic_streambuf (3cxx) - (unknown subject) ...


8

While the simplest approach is to search with / as suggested by @girardengo, you can also use grep instead of sed which I find simpler: $ man grep | grep -A 1 '^ *-i' -i, --ignore-case Ignore case distinctions in both the PATTERN and the input files. (-i is specified by POSIX.) The -A N means "Print N lines after the matching ...


8

First, find out which section your man page belongs to. If its a command, it probably belongs to section 1. You can read the manpage for the man command to see a description of the different sections and their corresponding numbers. Copy your man page to /usr/local/share/man/man1/ (change 1 to your section number if need be). You can also install it to ...


7

Gman From the Ubuntu man page, Gman is a "GTK+ based front-end for man, a good replacement for xman." Gman provides a simple index of the man pages installed on your local system and offers several options for viewing the man pages. The default option is to have gman open the pages in xterm, but this can be modified to suit your taste. The other viewing ...


7

POSIX stipulates a number of commands are available (see the Shell & Utilities volume) and that they work in a certain way. Here are those commands: admin alias ar asa at awk basename batch bc bg break c99 cal cat cd cflow chgrp chmod chown cksum cmp colon comm command compress continue cp crontab csplit ctags cut cxref date dd delta df diff dirname ...


7

First run: man apt-get Now, when you are inside manual page of apt-get, type / followed by the word/phrase to search for it and Enter. For example: if you are interested about install, type /install followed by Enter. if you are interested about --no-install-recommends, type /--no-install-recommends followed by Enter. After, you can use N and Shift+N ...


7

To see the most MACHO man page ever created use man man which will show you the man help for men! To see all the man pages available in Ubuntu use man -k . NOTE - man -k * will also work but man -k . is not the same as man -k * They both show all manuals BUT * will show some additional things or nothing depending if you run * inside an empty directory or ...



Only top voted, non community-wiki answers of a minimum length are eligible