LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2003, 09:17 AM   #1
newlin
Member
 
Registered: Jan 2003
Location: UK
Distribution: Red Hat 9 FC2
Posts: 52

Rep: Reputation: 15
command to display one screenful


Can anyone tell me what the bash2 command is for displaying one screenful of files/dirs ( the dos comand is dir /p )

also how do i display just the names of the subdirs without all the files in these subdirs ?

I do not know what is in the dir to start with and want to view the dirs in it. Like for instance the tree structure of linux

thankyou for any comments ....


joe

ps read the book but still none the wiser on this score .
also read man ,help ,info etc but cannot find this command
 
Old 06-22-2003, 09:21 AM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
the bash command is 'more' or 'less' . just pipe the output to these commands.

to display only directories you can use 'find' with -d option.

'man find' for more options
 
Old 06-22-2003, 10:19 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
less if a better option than more

Sample:

ls -al /usr/bin | less
 
Old 06-22-2003, 02:12 PM   #4
newlin
Member
 
Registered: Jan 2003
Location: UK
Distribution: Red Hat 9 FC2
Posts: 52

Original Poster
Rep: Reputation: 15
ok great ! thanks manthram and trickykid .
 
  


Reply



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
Command to display CPU satimis Linux - Newbie 4 09-13-2004 11:34 AM
send to display command BlandoCal Linux - Software 0 05-17-2004 04:12 PM
Command to display version o2sk8 Linux - Software 3 04-15-2004 06:45 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
Display Command AnthonyM Linux - General 3 05-30-2002 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration