LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 08-15-2008, 10:00 AM   #1
HighHat
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
how to use ls command


I have read the man page but don't understand it. How do I get the ls command to list items one page at a time so I dont miss something in DOS I think it's dir -w-p
 
Old 08-15-2008, 10:03 AM   #2
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
try

ls | more

the | is the "pipe" , above my \ key on my UK keyboard
 
Old 08-15-2008, 06:50 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, when in a shell you can use "shift+PageUp" to scroll up the page

and "shift+PageDown" to scroll down,

or "enter" to get back to the prompt.

The amount you can scroll will depend on the amount of memory available to the shell/terminal.

A nice little cheat sheet from fosswire....

http://fosswire.com/cat/programming/page/4/

see how you go, cheers, Glenn

ps, the standard commands may not be enough to do what you want,
[glenn@GamesBox ~]$ man ls
[glenn@GamesBox ~]$ info ls
[glenn@GamesBox ~]$ ls --help

But as mentioned above by "keratos", the pipe function adds some control to the lookup.

ls | more
ls | less

hit q to quit/exit

Last edited by GlennsPref; 08-15-2008 at 07:05 PM. Reason: But wait, there's | more and less
 
Old 08-15-2008, 08:26 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Hi, when in a shell you can use "shift+PageUp" to scroll up the page

and "shift+PageDown" to scroll down,
Well, I'll be.........learn something new everyday
 
Old 08-15-2008, 08:46 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Glad to contribute, pixellany.

I would have liked to say how to increase the memory but I only know the gui konsole way, not the bare shell settings(with out a gui running).

Hmmm...
 
Old 08-16-2008, 04:20 AM   #6
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 247

Rep: Reputation: 65
Quote:
Originally Posted by GlennsPref View Post
Glad to contribute, pixellany.

I would have liked to say how to increase the memory but I only know the gui konsole way, not the bare shell settings(with out a gui running).

Hmmm...
I think you would edit /etc/profile and change HISTSIZE=1000 to the number of lines you want.

Jim
 
  


Reply

Tags
less, ls


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
My error in mkisofs command to make a command line iso mg92865 Linux - Newbie 1 06-20-2008 11:43 AM
Translating windows pscp command to linux scp command help robward Linux - General 2 01-17-2008 06:02 AM
startx command in FC7 reverts me back to the command prompt sriram87 Linux - Newbie 5 01-03-2008 11:18 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration