NAME
cheat
—
cheatsheet
DESCRIPTION
The most frequently used commands.
Daemons
rcctl ls on
- list of enabled daemons/servicesrcctl ls started
- list of running daemons/servicesrcctl enable [daemon]
- set daemon status onrcctl restart [daemon]
- restart a daemon
Network
ifconfig
- display current configuration of network devsifconfig iwn0 scan
- list of available wireless networksnetstat -Aan
|grep LISTEN
- identify the process listening on a port
Packages
pkg_add -u
- update packagespkg_add [pkg-name]
- install a packagepkg_info
- list of installed packagespkg_info -m
- installed packages without dependenciespkg_info -Q [pkg-name]
- search a packagepkg_info -L [pkg-name]
- list files installed by a packagepkg_delete [pkg-name]
- delete a packagepkg_delete -a
- delete unused dependencies
System
uname -a
- print system characteristicstop
- display info about CPU processesdf -h
- show disk usagefw_update
- install non-free firmware packagessysupgrade
- upgrade system next release/snapshot
Users
useradd -m [username]
- create a user, -m create a home directory