#1  
Old 2nd October 2008, 08:02
meomike2000 meomike2000 is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 14
Thanked 0 Times in 0 Posts
Question need help please

i have a question that i hope somebody can help me with.
when at the command line u can type "ls" to get a list of files and directories.
the question i have is how do u make it stop if the list is to long to fit the page.

at a windows command line you would type "dir" and use the p option.

does anybody know if this is possible and if so how?

tia........
Reply With Quote
Sponsored Links
  #2  
Old 2nd October 2008, 09:42
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default

What I normally do is tye ls > somename.txt
This will dump everything in the file somename.txt
Now you can open somename.txt, and look through it line by line.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
The Following User Says Thank You to edge For This Useful Post:
meomike2000 (3rd October 2008)
  #3  
Old 3rd October 2008, 00:36
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 41 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

This will work as well:
Code:
ls | more
Reply With Quote
The Following User Says Thank You to Leszek For This Useful Post:
meomike2000 (3rd October 2008)
  #4  
Old 3rd October 2008, 02:48
Jamesr Jamesr is offline
Junior Member
 
Join Date: Oct 2008
Location: Oakville,Ontario,Canada
Posts: 7
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hi,

Also
Code:
ls | less
space bar to page down
Q
to quit
__________________
Best Wishes
Jim R
Various (X)ubuntu systems
Reply With Quote
The Following User Says Thank You to Jamesr For This Useful Post:
meomike2000 (3rd October 2008)
  #5  
Old 3rd October 2008, 05:58
meomike2000 meomike2000 is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 14
Thanked 0 Times in 0 Posts
Smile thank you

all three work very well.
thank you thank you thank you......
Reply With Quote
  #6  
Old 3rd October 2008, 19:16
Jamesr Jamesr is offline
Junior Member
 
Join Date: Oct 2008
Location: Oakville,Ontario,Canada
Posts: 7
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

Hi,

Glad to be of help.
__________________
Best Wishes
Jim R
Various (X)ubuntu systems
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.