LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-23-2003, 01:32 PM   #1
sramelyk
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 79

Rep: Reputation: 15
'ls' command...


when doing a 'ls' command.. How can I pause or show all of the directory?
 
Old 08-23-2003, 01:34 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
ls | less

or, for colors

ls --color | less -R

'man ls' and man 'less' for details about your lister and pager.
 
Old 08-23-2003, 01:40 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Take a look at this thread:
http://www.linuxquestions.org/questi...threadid=83891
 
Old 08-23-2003, 03:35 PM   #4
zsejk
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 345
Blog Entries: 5

Rep: Reputation: 30
ls -la | more

shows you all the nifty hidden files as well, and you get to press the fab spacebar to scroll down more (just like in the man pages, man ). Press Q to quit or quit early.

-zsejk
 
Old 08-23-2003, 05:26 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you should use "less" instead of "more", as it has additional functionality, like beign able to backwards etc...

more and mroe recently "more" has actaully been nothign more than a symlink to less though, so it's possible you're actually using "less" without realising
 
Old 08-23-2003, 05:35 PM   #6
zsejk
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 345
Blog Entries: 5

Rep: Reputation: 30
Ah... but "more" has a much more positive ring to it than "less"...



-zsejk
 
Old 10-01-2003, 05:23 AM   #7
rampki
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
ls command

Can anybody tell me how to display 30 days old files in linux
using "ls" command
 
Old 10-01-2003, 12:45 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Welcome to LQ.

In future please don't hijak threads. Create a new one instead. You will also be more likely to get a response if you haven't had any replies to your thread.

I don't think there is a way to do it with ls. You will need to use find:
man find
 
  


Reply


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
How to paginate in the 'LS' command? jhecht Linux - Software 10 04-13-2010 06:15 AM
Any arguement that can be used with 'ls' command to ignore case? davidas Linux - Newbie 5 02-26-2006 04:46 AM
alias cs='cd $1; ls' milanche Linux - Newbie 11 09-13-2005 05:57 PM
general 'ls' question purpleburple Linux - General 8 04-17-2003 12:21 PM
creation date of file using the 'ls' command robt Linux - Newbie 1 03-27-2003 12:34 AM


All times are GMT -5. The time now is 03:28 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