Proc
m (Reverted edits by 75.16.213.37 (Talk); changed back to last version by 84.171.99.198) |
Revision as of 20:16, 27 October 2007
In Linux, you can use /proc to see various bits of kernel and system info. In FreeBSD, the equivalent is sysctl. Linux also has sysctl, but its usefulness is nowhere near that of FreeBSD's sysctl. FreeBSD versions prior to 5.0 had a working /proc implementation. However, several serious security issues were discovered and it was decided to move away from /proc. The replacement is sysctl.
FreeBSD 5.x still has a mountable /proc system, and it is still used for certain debugging programs, including truss. FreeBSD 6.x has moved away from /proc completely, and you need to jump through several hoops in order to get it mounted. No tools included with FreeBSD actually use it for anything, though. FreeBSD 7.x will probably be the first release without any trace of /proc.