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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-31-2007, 08:07 AM
|
#1
|
LQ Newbie
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9
Rep:
|
Tree command?
Hi Guys what is the equivalent of the DOS tree command 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 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.
|
|
|
12-31-2007, 08:17 AM
|
#2
|
Senior Member
Registered: Aug 2006
Posts: 2,697
|
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
|
|
|
12-31-2007, 08:22 AM
|
#3
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
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.
|
|
|
12-31-2007, 08:22 AM
|
#4
|
LQ Newbie
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by ghostdog74
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 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
|
|
|
12-31-2007, 08:36 AM
|
#5
|
LQ Newbie
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by {BBI}Nexus{BBI}
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
|
|
|
12-31-2007, 08:40 AM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
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. 
|
|
|
12-31-2007, 08:57 AM
|
#7
|
Senior Member
Registered: Aug 2006
Posts: 2,697
|
Quote:
Originally Posted by admad1
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
|
|
|
12-31-2007, 09:11 AM
|
#8
|
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847
Rep: 
|
Quote:
Originally Posted by admad1
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
|
should do it.
|
|
|
12-31-2007, 10:00 AM
|
#9
|
LQ Newbie
Registered: Dec 2007
Distribution: CENTOS 5 Server
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by pwc101
|
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
|
|
|
12-31-2007, 02:04 PM
|
#10
|
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847
Rep: 
|
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 
|
|
|
All times are GMT -5. The time now is 12:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|