LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-31-2007, 08:07 AM   #1
admad1
LQ Newbie
 
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9

Rep: Reputation: 0
Tree command?


Hi Guys what is the equivalent of the DOS tree command
Quote:
tree | more
in lunix I want to explore directories and files on my Centos 5 distro but cant find which command to list all directory's on the system I've downloaded the Centos 4 - 5 manuals but cant see it.

I can use
Quote:
ls -all
in the current directory and can change directory but cant see what directories I have to change to

cheers
Andy

Last edited by admad1; 12-31-2007 at 08:12 AM.
 
Old 12-31-2007, 08:17 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
its tree too.
you can also explore your file systems using find command.
man find or info find on your system to find out more
 
Old 12-31-2007, 08:22 AM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Try ls -R | more to see all subdirectories & files within those directories. If you just want to see what subdirectories there are do ls.

Last edited by {BBI}Nexus{BBI}; 12-31-2007 at 08:24 AM.
 
Old 12-31-2007, 08:22 AM   #4
admad1
LQ Newbie
 
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ghostdog74 View Post
its tree too.
you can also explore your file systems using find command.
man find or info find on your system to find out more
Lol.. I never thought to try that. However I'm logged in as root at the command line and typing
Quote:
tree
just gives me 3 files anacanda-ks.cfg
install.log
install.log.sys

Is there a way of listing the whole directory structure across a drive

Andy
 
Old 12-31-2007, 08:36 AM   #5
admad1
LQ Newbie
 
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
Try ls -R | more to see all subdirectories & files within those directories. If you just want to see what subdirectories there are do ls.
Thanks Guys. Nexus I see a link to webmin in your post I'm downloading it now. Is it easy to install to my centos 5 server?

Cheers
Andy
 
Old 12-31-2007, 08:40 AM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
It should be straight forward. You might want to check if it's already in you repo list and install it from there to avoid any potential dependency issues.
 
Old 12-31-2007, 08:57 AM   #7
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by admad1 View Post
Lol.. I never thought to try that. However I'm logged in as root at the command line and typing just gives me 3 files anacanda-ks.cfg
install.log
install.log.sys

Is there a way of listing the whole directory structure across a drive

Andy
if you want to use tree, you can download and install. However, if you can't download and install, you can use find. Eg of the simplest syntax of find you can get.
Code:
# find / -print
or
# find / -ls
like i said before, check the man page of find (or ls) for more info
 
Old 12-31-2007, 09:11 AM   #8
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by admad1 View Post
However I'm logged in as root at the command line and typing just gives me 3 files anacanda-ks.cfg
install.log
install.log.sys

Is there a way of listing the whole directory structure across a drive
Code:
tree / | more
should do it.
 
Old 12-31-2007, 10:00 AM   #9
admad1
LQ Newbie
 
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pwc101 View Post
Code:
tree / | more
should do it.
Thats the one. Cheers although I seem to be stuck with a us keyboard and cant add the |more part of the syntax.

How do I change the keyboard language?

Cheers
Andy
 
Old 12-31-2007, 02:04 PM   #10
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
It depends on your desktop environment (KDE, Gnome, XFCE, fluxbox etc.). Google will have answers for each one, so do a quick search and see

In KDE (which is what I have to hand) you'd open the Control Centre via the K-menu > Settings, then go to Regional and Accessibility, then go to Keyboard Layout, and select the appropriate keyboard layout there. I imagine it's not that different in Gnome.

You can also change it for your ttys using the loadkeys command, although I've never used it, since I always select a UK keyboard layout during installation
 
  


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
reinstall coreutils? (tree command missing) RayJ Linux - Software 5 03-25-2007 09:33 PM
tree command not working mikeymo Linux - Software 4 11-22-2005 11:41 PM
Building the Tree command rsaltivan Programming 2 09-17-2005 10:39 PM
linux 'tree' command scooter_sj Linux - General 2 08-30-2005 11:39 AM
Which command displays the dir tree of a HD? cbjhawks Linux - General 5 02-28-2004 12:17 AM

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

All times are GMT -5. The time now is 02:41 AM.

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