Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2000 19:41:18 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        Konrad Heuer <kheuer@gwdu60.gwdg.de>
Cc:        Mark.Hummel@hurlburt.af.mil, freebsd-questions@freebsd.org
Subject:   Re: Dir Structure to text command?
Message-ID:  <20000626194118.E232@parish>
In-Reply-To: <Pine.BSF.4.05.10006262011070.38660-100000@gwdu60.gwdg.de>; from kheuer@gwdu60.gwdg.de on Mon, Jun 26, 2000 at 08:12:22PM %2B0200
References:  <856532CB07BED3118FE300204840E28A01107591@vexwncc02.hurlburt.af.mil> <Pine.BSF.4.05.10006262011070.38660-100000@gwdu60.gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 26, 2000 at 08:12:22PM +0200, Konrad Heuer wrote:
> 
> On Mon, 26 Jun 2000 Mark.Hummel@hurlburt.af.mil wrote:
> 
> > I'm looking for a command line input that will give me a text file of the
> > entire directory structure of my BSD partition without files as an output.
> > A comparable command for old DOS users would be "tree | more".
> 
> Maybe
> 
>   find / -print | more
> 
> will do what you want?

He doesn't want files, just directories. Try

   find / -type d | more

or to save the output in a file

   find / -type d > filename

Note you should run this as root or you'll get a lot of "Permission
denied" errors.

> 
> Regards
> 
> Konrad Heuer                                    Personal Bookmarks:
> Gesellschaft für wissenschaftliche
>    Datenverarbeitung mbH GÖttingen              http://www.freebsd.org
> Am Faßberg, D-37077 GÖttingen                   http://www.daemonnews.org
> Deutschland (Germany)
> 
> kheuer@gwdu60.gwdg.de
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
  If I buy a copy of WinDelete, and it doesn't delete Windows,
  am I entitled to my money back?
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org             http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000626194118.E232>