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.
I'm taking a OS class and we're going over commands from DOS and their equals in Linux but I cannot for the life of me find a command that shows a listing of directories like the "tree" command does in DOS. I remember doing it and I cannot find it. And the ls -R command is not what I'm talking about in case anyone was thinking that.
If anyone could tell me I'd appreciate it, I've been strugling with this forever, the final is over and this is the only question I have left before I'm out of this class and gone untill next quarter LOL.
Hey, Commodore Basic rocks! I always loved it for the possibility to program right away instead of having a computer waiting for a floppy-disk to boot some random game like the Amiga-users back in school used to do...
Originally posted by spariggio82 If I'm not wrong the command is:
tree -l
where -l stand for the sub level you want to see!!!
Good Luck
with that i got a command not found error, but with the find command above i got a list of all the directories and their subs. sadly it was also listing a few mounted partitions to my windows server and that got a bit long so i ctrl+c to stop the listing of directories.
Then add -xdev to the find command, to check the "local" point tree only, as stated in the manual page. If you don't have the tree command, just install it (I'd bet on a simple "apt-get install tree"), it isn't part of a base system, because overlapping functionality with the find swiss-army-knife tool.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.