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.
|
|
01-17-2004, 03:48 PM
|
#1
|
Member
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49
Rep:
|
Command to display whole filestructure hierarchy f/ command line?
I'm weaning myself as rapidly as possible from a graphic user interface to learn my Linux commands.
Its hard though b/c I started computers with a MacIntosh in or around 1984 and did not shift to a PC until after (gad!) Windows 95.
Is there a way to display the entire filesystem hierarchy from the command line?
Something analogous to the filesystem tree in a GUI? I keep getting disoriented, and I have not memorized the basic Linux filesystem yet except that root is at the top, and a few of the important files /proc /dev /bin, etc. are next.
I already know how to list the contents of a particular directory, but I'd really like to be able to get a bird's eye view of the whole tamale once in awhile.
/// Thanks in advance. This forum has really helped me a lot so far, and I appreciate the patience and insight of my fellow members who have guided me thus far. Regards from just below the Great White North --- yes, Montana.
|
|
|
01-17-2004, 04:25 PM
|
#2
|
Member
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555
Rep:
|
Hi mjewell!
Maybe Midnight Commander is what you want? Try typing mc at the command line.
Regards from the Great White North - Sweden
Martin
|
|
|
01-17-2004, 04:37 PM
|
#3
|
Member
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49
Original Poster
Rep:
|
Thanks, MartinN! I've heard of Midnight Commander before but never understood what it was for. : I'll try it out.
How's the weather over there? We just recovered from a bout of -20 degree holiday cheer. Gad! rolleyes: I REFUSE to shovel the driveway until the snow stops for a decent interval.
mj
|
|
|
01-17-2004, 05:25 PM
|
#4
|
Member
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555
Rep:
|
Good to hear that you liked Midnight Commander.
I just checked the thermometer, it's -6 Celsius (21 F). We have some snow, but a couple of days ago the temperature was above 0 C, so it's very icy. Showel the driveway? That's another reason for living in an apartment.
Martin
|
|
|
01-17-2004, 05:42 PM
|
#5
|
Member
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49
Original Poster
Rep:
|
Oops! Sorry --- yes, we were just about b/t -28 and -30 degrees Celsius. And we're having the slippery refrozen ice cream effect on the roads too. Wish I was in an apartment!
At least the days are getting longer again.
|
|
|
01-17-2004, 07:58 PM
|
#6
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
If you want, you could just type (as root) ls -R /. This will scroll by pretty quickly, so you may want to either redirect the output to a file or pipe it to more/less:
ls -R /
ls -R / > /home/mjewell/file-system.txt
ls -R | less
Hope this helps.
Oh, and if you want filesizes too, then use ls -lR / instead.
|
|
|
01-17-2004, 09:29 PM
|
#7
|
Member
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49
Original Poster
Rep:
|
That's another great one. It makes total sense from what I've read and struggled to understand and apply. Hearing you say gave me one of those ah-hah! moments. Thanks!!!
|
|
|
01-17-2004, 09:31 PM
|
#8
|
Member
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49
Original Poster
Rep:
|
Oops! One follow up. How do I redirect output to a file that I can print out and read as text?
|
|
|
01-18-2004, 06:10 PM
|
#9
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
Use the >
eg. command > filename.txt
|
|
|
01-19-2004, 01:24 AM
|
#10
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
There is a command called tree, however it may not be installed by default.
it displays the directories and files in a tree like structure.
By the way, I was just outside. It is -24 degress Celcius, but feels much colder tonight.
|
|
|
01-19-2004, 11:48 AM
|
#11
|
Member
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49
Original Poster
Rep:
|
Thanks, Jschiwal --- I should have started posting my questions much sooner b/c the responses have been so helpful. Tree sounds great. I'll reboot into my Linux partition and see if its there.
Its nice to get a message from a fellow freezing person. North Dakota is king of cold. Western Montana is just a distant cousin of cold by comparison.
We're up to something like -12 Celsius today, but the roads are still covered with snow that's been melted and refrozen a couple of times. I'm still boycotting the snow shoveling and the pizza delivery guys are starting to give me dirty looks.
|
|
|
All times are GMT -5. The time now is 06:52 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
|
|