Tag Info

New answers tagged

0

It easy can be done by adding less command to special variable LESS: LESS=+/-T man ls where /-T is less command /find -Tpattern


2

You can do that piping man though less and using the -p flag: -ppattern or --pattern=pattern The -p option on the command line is equivalent to specifying +/pattern; that is, it tells less to start at the first occurrence of pattern in the file. Examples: man ls | less -p -T man git-log | less -p -S Since you'll land ...


0

Assuming you use gnome-terminal and less as a pager for man you can: Run less for man with -X key to disable alternate screen, for example: LESS=-X man less This will allow to append output of man to terminal emulator history buffer. See this answer for more details http://unix.stackexchange.com/a/38638/87918. Scroll to the last page of text you want ...


2

This is because man does not use the pager unless output is sent to a terminal. If output is sent to a pipe instead, it will merely cat the output there. And so... man rev | rev | rev ...and... man -Prev rev | rev | rev ...are equivalent.


4

Running apropos '^system' works for me, returning the list of man pages where either the page name itself starts with system or the one line description starts with system. For example, the output on Debian (jessie) includes: system-config-printer (1) - configure a CUPS server sigset (3) - System V signal API I know of no clean way to tell apropros to ...


2

The apropos command searches both names and descriptions. But results could be filtered: apropos system | grep "^system"


2

If you already know the section of the manual page you want to view, you can pass that as a parameter to man. For example, to view the manual page for read in section 2: man 2 read The sections are as follows (this list taken from the manual page for man itself): Executable programs or shell commands System calls (functions provided by the kernel) ...


3

One option is to search with prefixed spaces, such as: / alias, where there are two spaces before the word "alias" to prevent false positive matches where "alias" appears as part of another sentence. You can also ground the match to the beginning of the line if you know exactly how many spaces there are: /^ alias for example. However your expressions ...


2

By convention, the brackets indicate something that is optional. So you can run tcpdump, or tcpdump -c 3 -i eth0, or tcpdump -c 3 -r /path/to/file, etc. Also, unless explicitly indicated, options can be used in any order, so you can run tcp -i eth0 -c 3, etc. Most commands allow options to be clustered when they use a single letter. For example, tcpdump -AX ...


1

Ok, I may start to understand. Tell me if I am right. I tried this on my terminal sudo tcpdump -nnvvXeB 1024 host 10.11.204.15 So if I understand well, -nnvvXeB 1024 is the same that -nn -vv -X -e -B 1024 witch is the same that -B 1024 -nn -X -e -vv witch is the same that -B 1024 -nnXevv Are they others "swapping" I can do with this command ? In the ...


1

you can check man pages by scroll down to get more details about options root@ubuntu:~# man tcpdump to search for any keyword type /keyword then enter Below are most common options you can use with tcpdump . -i any : Listen on all interfaces just to see if you’re seeing any traffic. -i eth0 : Listen on the eth0 interface. -D : Show the list of ...



Top 50 recent answers are included