Click to See Complete Forum and Search --> : Recently converted... Basic Shell command line question


cheapbastard
03-12-2001, 03:31 PM
I cannot, for the life of me, find the equivalent of the DOS command "dir /p" !!!

I'm trying to view the contents of directories and I can't find any kind of pause command anywhere in these stupid books I've got. Am I missing something here? :confused: :confused:

twofoolish2b
03-12-2001, 03:35 PM
I always use ls |more.

mongrel
03-12-2001, 03:36 PM
ls | more
ls is the unix equivalant of dir, the pipe sends the output to the more utility which is much more powerfult than the pause switch in dos. More actually lets you scroll up or down through the list. You can find more info on more by entering: man more
at the prompt.

cheapbastard
03-12-2001, 03:40 PM
Gracias
:p

aph3x
03-12-2001, 03:42 PM
personally, i like less more than more, because more often than less, i need less to scroll back and forth through more text... :p

cheapbastard
03-12-2001, 03:45 PM
oooooooo, I like that one! Thanks aph3x

:D

ep0k
03-12-2001, 04:49 PM
Originally posted by aph3x:
personally, i like less more than more, because more often than less, i need less to scroll back and forth through more text... :p

momma?

berb
03-12-2001, 05:13 PM
Originally posted by aph3x:
personally, i like less more than more, because more often than less, i need less to scroll back and forth through more text... :p

concur

teeitup
03-13-2001, 12:13 AM
FYI

When using the more command the "B" will scroll backwards.

Using the space for forward and B for back works well.

thor4linux
03-13-2001, 12:24 AM
In Drake and SuSE l and ll are aliases that i beleive are defaults.

in Drake l =ls
and ll=ls -al|more with cool color codeing.

SuSE
l = ls -al 
ll= ls
Both with color coding.

Although you can specify any alias in you .profile file, but i haven't figured out how to gat the color option to work.

Also the l and ll options might be bash specific, i'm not sure.