Michael Walters wrote:

Hello All,

I am having fun going through my Linux Command Summary and trying out commands like "ls -m" and "ls -r".

The reason I was going through the ls commands and their variations is that when I do a straight "ls" I only get the last screen page of the files and directories in the current directory. I want to list the files and directories in the current directory, and then by hitting the appropriate key, scroll to the next page, and then the next page, until I see the last page. And I want to also scroll back to previous pages.

Could someone please tell me where to go in the Linux Command Summary to find out how to do this?

Regards,

Michael Walters

Post Script:

I know that when I do an "ls -a" that I also get the hidden files beginning with ".". I would also like to be able to scroll through the hidden files too.

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying



Michael, pipe your ls command through less. i.e. ls | less. Then you can use the "Page Up" and Page Down keys to scroll through all the listings.
Try also ls -l | less.


Mel


_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

Reply via email to