From owner-freebsd-questions Fri Jul 27 21:58:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [206.29.169.15]) by hub.freebsd.org (Postfix) with ESMTP id 2E22F37B405 for ; Fri, 27 Jul 2001 21:58:41 -0700 (PDT) (envelope-from tedm@toybox.placo.com) Received: from tedm.placo.com (nat-rtr.freebsd-corp-net-guide.com [206.29.168.154]) by mail.freebsd-corp-net-guide.com (8.11.1/8.11.1) with SMTP id f6S4wX854047; Fri, 27 Jul 2001 21:58:34 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Mike Meyer" , "Wing Tim" Cc: Subject: RE: Listing all files and directories in the kernel Date: Fri, 27 Jul 2001 21:58:33 -0700 Message-ID: <004201c11721$f3aac820$1401a8c0@tedm.placo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 In-Reply-To: <15201.28564.745944.446480@guru.mired.org> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG A friend of mine worked out the following script, this may be something along the lines of what your looking for: (cd $1;pwd) find $1 -type d -print | sort -f | sed -e "s,^$1,," -e "/^$/d" -e \ "s,[^/]*/\([^/]*\)$,\+-----\1," -e "s,[^/]*/,| ,g" save it to a file named "dtree" then as root do something like sh dtree / to get an idea of the output. Ted Mittelstaedt tedm@toybox.placo.com Author of: The FreeBSD Corporate Networker's Guide Book website: http://www.freebsd-corp-net-guide.com >-----Original Message----- >From: owner-freebsd-questions@FreeBSD.ORG >[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Mike Meyer >Sent: Friday, July 27, 2001 6:42 AM >To: Wing Tim >Cc: questions@FreeBSD.ORG >Subject: Re: Listing all files and directories in the kernel > > >Wing Tim types: >> Hi all, >> Is there any way or any command in terminal to list out the tree >(that is, >> locations of all files and directories) in the kernel? > >Your question - as stated - doesn't make sense. Files and directories >are on disk, not in the kernel. You can use "ls -R" to list all the >files and directories in a specific directory. Without knowing what >you really want, I can't say what directory you want to list. > > -- >Mike Meyer http://www.mired.org/home/mwm/ >Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message