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.
09-18-2009, 04:05 AM
#1
Member
Registered: Aug 2009
Posts: 539
Rep:
How to list the directory tree?
I use RH Linux. I tried using the tree command to list the directory tree but failed. I was told this command doesn't exist.
09-18-2009, 04:08 AM
#2
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039
Rep:
You need to install the tree package
09-18-2009, 04:16 AM
#3
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
How?
09-18-2009, 04:27 AM
#4
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
09-18-2009, 04:30 AM
#5
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039
Rep:
On a debian based distro you would simply type:
Code:
sudo apt-get install tree
But for Red-Hat you will use an RPM
Go to:
http://rpm.pbone.net and search for the package that you want to install (if it's not on your installation media).
Once you have found the rpm file download it to your machine and install as root from th command line:
Code:
rpm -i tree-whatever.rpm
Edit:- Try repo's suggestion first.
Last edited by Disillusionist; 09-18-2009 at 04:32 AM .
Reason: I must type faster!
09-18-2009, 04:33 AM
#6
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
Quote:
Originally Posted by
Disillusionist
On a debian based distro you would simply type:
Code:
sudo apt-get install tree
But for Red-Hat you will use an RPM
Go to:
http://rpm.pbone.net and search for the package that you want to install (if it's not on your installation media).
Once you have found the rpm file download it to your machine and install as root from th command line:
Code:
rpm -i tree-whatever.rpm
Where should I save the rpm file first? Anywhere I like? Or /root/tmp?
09-18-2009, 04:35 AM
#7
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039
Rep:
It doesn't matter, I normally save them to /usr/local/src
The important thing is to run the rpm command from that directory.
09-20-2009, 05:11 AM
#8
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
Quote:
Originally Posted by
Disillusionist
On a debian based distro you would simply type:
Code:
sudo apt-get install tree
But for Red-Hat you will use an RPM
Go to:
http://rpm.pbone.net and search for the package that you want to install (if it's not on your installation media).
Once you have found the rpm file download it to your machine and install as root from th command line:
Code:
rpm -i tree-whatever.rpm
Edit:- Try repo's suggestion first.
I entered the key word "free" and it lists a very long list. But I couldn't find any rpm-package tree for RH EL 4 from the link you put here.
09-20-2009, 05:14 AM
#9
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
Download the rpm
open a terminal
become root
cd to the directory where you saved the rpm
type
Code:
rpm -ivh rpmname.rpm
Once installed, you can delete the downloaded rpm
Or type
to install from the repo's
Last edited by repo; 09-20-2009 at 05:15 AM .
09-20-2009, 10:10 AM
#10
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
The problem is I can't find out the "tree" package from the site "http://rpm.pbone.net".
09-20-2009, 10:15 AM
#11
Member
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724
Rep:
Quote:
Originally Posted by
thomas2004ch
The problem is I can't find out the "tree" package from the site "http://rpm.pbone.net".
http://www.rpmfind.net/linux/rpm2htm...submit=Search+ ...
09-21-2009, 01:48 AM
#12
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
Quote:
Originally Posted by
quanta
Thanks.
But there is no for Redhat Enterprise Linux 4.
09-21-2009, 04:55 AM
#13
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
09-25-2009, 01:54 AM
#14
Member
Registered: Aug 2009
Posts: 539
Original Poster
Rep:
Quote:
Originally Posted by
repo
Yes, but I got
Code:
-bash: yum: command not found
09-25-2009, 02:17 AM
#15
Member
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724
Rep:
Quote:
Originally Posted by
thomas2004ch
Yes, but I got
Code:
-bash: yum: command not found
http://www.rpmfind.net/linux/rpm2htm...&system=&arch=
Another way:
Code:
up2date install tree
All times are GMT -5. The time now is 03:08 PM .
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