Tag Info

Hot answers tagged

51

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 ...


49

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 () { ...


37

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 ...


32

You are not getting any files against those commands because they are shell (bash) built-ins, not separate executable files (e.g. binary files, scripts). Actually, shell built-ins are compiled into the shell executable; if you want you can check the source code to be sure of it. As which or whereis only looks for external executable files, you are not ...


31

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 ...


28

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


22

You add those to /etc/environment. It likely already has a line for PATH, so you just append :/usr/local/texlive/2010/bin/x86_64-linux to the end of that. Then add two new lines for MANPATH and INFOPATH. See https://help.ubuntu.com/community/EnvironmentVariables. After editing /etc/environment, log out and back in, and check that e.g. echo "$MANPATH" ...


21

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


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. ...


18

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 ...


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

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

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 ...


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 ...


12

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 ...


12

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

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 ...


12

From man man: ... The pager can be specified in a number of ways, or else will fall back to a default is used (see option -P for details). ... -P pager, --pager=pager Specify which output pager to use. By default, man uses pager -s. This option overrides the $MANPAGER environment ...


11

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.


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

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


10

To access the (7) man section you can use the following command: MANSECT=7 man regex The section search order is predefined, that explains why you get regex(3) by default: MANSECT If $MANSECT is set, its value is a colon-delimited list of sec‐ tions and it is used to determine which manual sections to search and ...


9

By default, it's less. As explained in man man: -P pager, --pager=pager Specify which output pager to use. By default, man uses pager -s. This option overrides the $MANPAGER environment variable, which in turn overrides the $PAGER environment variable. It is not used in conjunction with -f or -k. The value may be a simple ...


9

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 ...


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. ...


9

Info is the default format for documentation inside the GNU project, man is the much older traditional format for UNIX. Info uses Texinfo as its source format, which is a bunch of macros for TeX, and that makes it much easier to also create "good-looking" printed versions or PDFs. Generally, manpages are more about 1 specific topic (a command, a config ...


9

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

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 ...



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