LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   console.... (https://www.linuxquestions.org/questions/linux-newbie-8/console-1378/)

Jeffrey 03-19-2001 12:46 PM

i like to use the console, but i can't figure out how to freeze the output to fit the screen on a dir or ls command (like dir/p in M$dos).i did a "ls --help", but half of the text is off the screen:(

that would be great,
thanks

mathi 03-20-2001 03:28 AM

When using a virtual terminal (on a vga card), you can use Shift-PgUp to scroll up. To suppress scrolling on a real long dump, you can use the compination Ctrl-S/Ctrl-Q, on any terminal. The most common way though is pipe it to the programms more or less. For example:
ls --help | more
or
find | grep "\.[ch]$" | less
(which is a cryptic way to say "show me all files and their directories relative to pwd in and under pwd which end on ".c" or ".h" ")


All times are GMT -5. The time now is 11:17 AM.