Date: Mon, 19 Mar 2001 21:25:17 -0500 (EST) From: Dru <genisis@istar.ca> To: Forrest <praxis@techpraxis.com> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Ps(1) command on FreeBSD --> parent-child view =?ISO-8859-1?B?vw==?= Message-ID: <Pine.BSF.4.21.0103192122260.792-100000@istar.ca> In-Reply-To: <B6DBFC65.2778%praxis@techpraxis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103192122260.792-100000>