BSD equiv of /proc?

Scott Mitchell scott+lists.freebsd at fishballoon.org
Fri May 5 16:41:06 UTC 2006


On Fri, May 05, 2006 at 10:07:03AM -0400, Jim Stapleton wrote:
> I have a proc filesystem on my computer, but it's  empty. I'm used to
> linux, where you can do stuff like 'cat /proc/cpuinfo' to get
> information about the system. What is the BSD equivalent of this, or
> is it /proc, and I'm just missing something?

As others have said, FreeBSD's /proc doesn't give you cpuinfo or the other
metadata that Linux provides, but it shouldn't be completely empty.  A line
like this in /etc/fstab should be enough to get it working:

proc	/proc	procfs	rw	0	0

You should get a directory under /proc for every process on the system,
with a bunch of files under each one.  Try man procfs for the details.

Cheers,

	Scott

-- 
===========================================================================
Scott Mitchell           | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England       | 0x54B171B9 |  don't get sucked into jet engines"
scott at fishballoon.org | 0xAA775B8B |      -- Anon


More information about the freebsd-questions mailing list