February 12, 2012

Can you pause the ls command?

When you have a large directory, how do you get "ls" to pause. I could not find any options to do this.

Pipe the output of ls command to more command. So it should look like this ls...

Pipe the output of ls command to more command. So it should look like this ls | more. Say, if you're trying to see what's inside /home/user/Documents you can type ls /home/user/Documents | more. This will let you see the contents of Documents page by page, or line by line.

Like  (1 like)

ls | more

ls | more

Like  (0 likes)

For this you use the "less" o "more" command and you connect them with the...

For this you use the "less" o "more" command and you connect them with the pipe character "|" so the command should be "ls | less" or "ls | more" for me, "less" is better.

Like  (0 likes)

ls | more

ls | more

Like  (0 likes)

use the more command like: ls -l | more (pipe sign)...

use the more command like: ls -l | more (pipe sign)
or u can scroll the output both up and down one line at a time, try this command: ls -l | less (here ctrl+c does not work, while u have to press q to exit)

Like  (0 likes)

To view long output from utilities like ls, you must pipe the output into a...

To view long output from utilities like ls, you must pipe the output into a pager, such as more, less, or most: `ls | less`. The "|" (pipe) sends, or pipes, standard output from the command on the left (ls) into the standard input of the command on the right (less). Press the spacebar to advance the output of the pager. Press the "q" key to quit the pager. Try `man less` for more information.

Like  (0 likes)

You can simply type ls | more

You can simply type ls | more

Like  (0 likes)

ls | less That will allow to scroll up and down the list. I do hope that helps.

ls | less
That will allow to scroll up and down the list.
I do hope that helps.

Like  (0 likes)

Pages

Click Here!