Tag Info

New answers tagged

2

The only horizontal scrolling commands scroll by half a screenful, but you can pass a numeric argument to specify the number of characters, e.g. typing 4 Right scrolls to the right by 4 characters. Less doesn't really have a notion of “current line” and doesn't split a line into words, so there's no way to scroll by a word at a time. You can define a ...


2

See man termcap for the full definition of the variables that you are exporting. For example, this excerpt covers starting and ending standout mode: the value that is used for highlighting searches: se End standout mode ... so Start standout mode You can set yellow on a black background in your standout mode like so: export ...


2

Search patterns in less are colorize according to standout mode setting, so in order to display black on yellow you need to put export LESS_TERMCAP_so=$'\E[30;43m' where 30 means black foreground, and 43 yellow background.


1

An alternative is to use the most pager. In most, no-wrap (-S) is the default and Right scrolls one column to the right instead of a half screen. Use > or Tab to scroll faster. Another alternative is the w3m pager (also one of the best terminal web browsers) where you can use <, > as well, and ,, . for finer-grain scrolling (same keys on qwerty ...


2

Type a number, which is the number of columns you want to scroll to, then hit the arrow key. Source: List of useful `less` functions


0

In terms of how to show the characters on the screen, less can do what cat can do; And much more. But there is a very good reason to use cat for some cases: less is just too complex to throw it on very simple problems. I has so many options that it's hard to find the cat-related ones in the man page. Want to show the tabs in a Makefile? In man cat, the ...


1

read will block until data is available, and write will block or fail incase the pipe is full. There few parameters such as PIPE_BUF , PIPE_SIZE and O_NONBLOCK that play a key role in pipe. The value of PIPE_BUF can be determined via 'ulimit -a' . It is defined in limits.h. The PIPE_BUF controls the guaranteed size for atomic write. This helps in making ...


2

No it doesn't load everything into memory, that would be an impractical way to design this. It uses buffers to buffer the output from the left side of the pipe, and then connect these buffers to the input of the command on the right side of the pipe. The man page man 7 pipe has all the details, as well as this other U&L Q&A titled: How big is the ...



Top 50 recent answers are included