LinuxQuestions.org
Visit Jeremy's Blog.
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 01-17-2004, 02:48 PM   #1
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Rep: Reputation: 15
Question 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.
 
Old 01-17-2004, 03:25 PM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi mjewell!

Maybe Midnight Commander is what you want? Try typing mc at the command line.

Regards from the Great White North - Sweden
Martin
 
Old 01-17-2004, 03:37 PM   #3
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Original Poster
Rep: Reputation: 15
Thumbs up

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
 
Old 01-17-2004, 04:25 PM   #4
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
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
 
Old 01-17-2004, 04:42 PM   #5
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Original Poster
Rep: Reputation: 15
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.
 
Old 01-17-2004, 06:58 PM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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.
 
Old 01-17-2004, 08:29 PM   #7
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Original Poster
Rep: Reputation: 15
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!!!
 
Old 01-17-2004, 08:31 PM   #8
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Original Poster
Rep: Reputation: 15
Oops! One follow up. How do I redirect output to a file that I can print out and read as text?
 
Old 01-18-2004, 05:10 PM   #9
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Use the >

eg. command > filename.txt
 
Old 01-19-2004, 12:24 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 01-19-2004, 10:48 AM   #11
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Original Poster
Rep: Reputation: 15
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.
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Modifing Gnome display from command line rooch84 Linux - Software 2 08-10-2004 09:10 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM
Change bytes display on command line Shinobi Linux - General 3 06-04-2003 09:03 AM

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

All times are GMT -5. The time now is 05:16 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