Freebsd equivalents for linux commands

From FBSD_tips

Jump to: navigation, search

This is not an exhaustive list, nor are these pairs identicle in every way, but it is quick way to get the same function(s) if you are coming from a linux background. In any case reading the man page for the equivalent would be a Real Good Idea (tm).

Comment Linux command Freebsd BASE Freebsd Ports
See free memory free systat -vmstat, sysctl vm.stats.vm
seq jot
Listing PCI devices lspci pciconf
Mounting a file losetup mdconfig
Listing sockets used by a process netstat -pantu sockstat lsof
lsof fstat lsof
Find the number of CPUs cat /proc/cpuinfo sysctl hw.ncpu
Get and set HD parameters hdparm atacontrol (ATA) camcontrol (SCSI)
Set network media options miitool ifconfig
Add and alter aspects of logins/groups/passwords/etc usermod pw, adduser, passwd
Upgrade a RO mount to RW mount /foo -o rw,remount mount -u -o rw /foo

There is a very complete searchable table of command equivalents at http://bhami.com/rosetta.html

The pnotify project is creating an inotify like interface for FreeBSD.

Gongo 18:48, 28 November 2007 (UTC)

Personal tools