LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-22-2005, 12:22 PM   #1
XDude
LQ Newbie
 
Registered: Jul 2003
Location: USA BABY!
Posts: 5

Rep: Reputation: 0
Linux equivalent to DOS "tree" command?


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.
 
Old 03-22-2005, 12:30 PM   #2
contusion
Member
 
Registered: Mar 2005
Posts: 310

Rep: Reputation: 34

There's also linux version of tree command. It may already installed.
Type tree. Or search it in google.

Last edited by Tinkster; 03-22-2005 at 01:45 PM.
 
Old 03-22-2005, 12:30 PM   #3
rgawenda
LQ Newbie
 
Registered: Mar 2005
Location: Ourense, Spain, EU
Distribution: Gentoo, Debian, Kubuntu
Posts: 29

Rep: Reputation: 15
Gentoo's portage includes this one, but you may use a simple find command as well:

Code:
find -type d
 
Old 03-22-2005, 03:15 PM   #4
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
If I'm not wrong the command is:

tree -l

where -l stand for the sub level you want to see!!!

Good Luck
 
Old 03-22-2005, 03:30 PM   #5
M O L8ingN2dust
Member
 
Registered: Mar 2005
Location: The People's Republic of Lumps in my Oatmeal!
Distribution: Mepis 3.2.1-1
Posts: 104

Rep: Reputation: 15
is there anyway to just run DOS from Linux? That would make my life easier...
 
Old 03-22-2005, 04:53 PM   #6
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

Rep: Reputation: 15
You can always go for an emulator:

http://dosbox.sourceforge.net/downlo...f4f44f90703877
 
Old 03-22-2005, 04:57 PM   #7
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
Or maybe Commodore Basic V2 Sure it's possible, but hey, what's the point???
 
Old 03-22-2005, 05:01 PM   #8
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

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

Kay kay, sorry for spamming...
 
Old 03-22-2005, 09:19 PM   #9
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
Quote:
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.
 
Old 03-24-2005, 01:19 AM   #10
rgawenda
LQ Newbie
 
Registered: Mar 2005
Location: Ourense, Spain, EU
Distribution: Gentoo, Debian, Kubuntu
Posts: 29

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux equivalent for "makedevice" command gan_04 Programming 1 07-26-2005 09:05 AM
Cedega and Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Games 0 03-26-2005 02:48 AM
equivalent of "what" shell command in Linux raees Linux - General 4 03-16-2004 08:59 AM
Equivalent to Dos "Type" command? greendemon Linux - Newbie 2 08-04-2003 04:48 AM
Linux Equivilant to DOS "Type" command Huggles Linux - General 9 02-27-2002 10:19 PM


All times are GMT -5. The time now is 01:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration