From owner-freebsd-questions Mon Mar 19 18:22:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from istar.ca (d141-119-162.home.cgocable.net [24.141.119.162]) by hub.freebsd.org (Postfix) with ESMTP id 5612437B720 for ; Mon, 19 Mar 2001 18:22:23 -0800 (PST) (envelope-from genisis@istar.ca) Received: (from genisis@localhost) by istar.ca (8.11.1/8.11.1) id f2K2PIM00858; Mon, 19 Mar 2001 21:25:18 -0500 (EST) (envelope-from genisis) Date: Mon, 19 Mar 2001 21:25:17 -0500 (EST) From: Dru To: Forrest Cc: FreeBSD Questions Subject: Re: Ps(1) command on FreeBSD --> parent-child view =?ISO-8859-1?B?vw==?= In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Forrest, It doesn't give exactly the same output, but "pstree -p" is sorta nice. Pstree is part of the /usr/ports/sysutils/psmisc port. HTH, Dru On Mon, 19 Mar 2001, Forrest wrote: > Is there an option on FreeBSD's ps(1) command like this > > Root# ps -axf > > Which would give out a "parent-child" view of process inheritance? Like > this: > > root 14452 0.0 0.4 2560 1124 ? S 16:35 0:00 smbd -D > root 14609 0.0 0.6 3856 1576 ? S 17:34 0:00 \_ smbd -D > root 14462 0.0 0.4 2116 1180 ? S 16:35 0:00 nmbd -D > root 14468 0.0 0.3 2148 1016 ? S 16:35 0:00 \_ nmbd -D > > Rather than the FreeBSD version which looks like this: > > root 14452 0.0 0.4 2560 1124 ? S 16:35 0:00 smbd -D > root 14609 0.0 0.6 3856 1576 ? S 17:34 0:00 smbd -D > root 14462 0.0 0.4 2116 1180 ? S 16:35 0:00 nmbd -D > root 14468 0.0 0.3 2148 1016 ? S 16:35 0:00 nmbd -D > > > On some implementations of Unix, this option is obtained with the --forest > option... On Linux systems, now, it is obtainable with the -f switch. > > Any one know this one? > > > Thanks > Forrest > > > 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