FreeBSD Quickstart Guide for Linux® Users
Prev |  | Next

# 9 Common Commands

## 9.1 Package Management

Linux® command (Red Hat/Debian) | FreeBSD equivalent | Purpose
--- | --- | ---
`yum install `package`` / `apt-get install `package`` | `pkg_add -r `package`` | Install `package` from remote repository
`rpm -ivh `package`` / `dpkg -i `package`` | `pkg_add -v `package`` | Install package
`rpm -qa` / `dpkg -l` | `pkg_info` | List installed packages

## 9.2 System Management

Linux command | FreeBSD equivalent | Purpose
--- | --- | ---
`lspci` | `pciconf` | List PCI devices
`lsmod` | `kldstat` | List loaded kernel modules
`modprobe` | `kldload` / `kldunload` | Load/Unload kernel modules
`strace` | `truss` | Trace system calls

Prev | Home | Next
procfs: Gone But Not Forgotten |  | Conclusion