Command to display whole filestructure hierarchy f/ command line?
Linux - NewbieThis 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.
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.
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.
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.
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.
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!
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.
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!!!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.