Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stupid question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

**new linux user*
when i type "ls", the list is to long so I cant see the first part of the list. Is there a way to pause it so as to see 1 page at a time? msdos equvilent: "dir /p"
 
if you don't already know, try using the shift-pgup and shift-pgdn keys to look through you session history.

if the list is still too long you can use....

ls |more
or
ls |less

the '|' is a pipe and passes the results of the first app to the second.

if that looks like a lot of typing, edit your ~/.bashrc and hopefully you'll see some examples of 'aliases'

eg.
alias lm='ls -l |more'

which would let you type 'lm' at the prompt to run the two commands.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top