Here’s a detailed cheatsheet for FreeBSD:
System Management
sudo command
– Run a command with elevated privilegessudo su
– Switch to the root userfreebsd-update fetch
– Fetch the latest system patchesfreebsd-update install
– Install available system patchespkg update
– Update the package listpkg upgrade
– Upgrade installed packagespkg install package
– Install a packagepkg remove package
– Remove a package
File System Navigation
ls
– List files in the current directorycd directory
– Change to a directorycd ..
– Go up one directorymkdir directory
– Create a new directoryrm file
– Remove a filerm -r directory
– Remove a directory and its contents
Text Editing
ee file.txt
– Open a file for editing in the ee text editorvi file.txt
– Open a file for editing in the vi text editor
Networking
ping host
– Send a ping to a host to test network connectivityifconfig
– Display network interface configurationnetstat
– Display network connections and routing tablesroute
– Display or modify the system’s routing tablessh user@host
– Connect to a remote host via SSH
System Information
uname -a
– Display system informationdf -h
– Display disk space usagetop
– Display real-time information about running processesps
– Display a list of running processes
Package Management
pkg search package
– Search for a packagepkg info package
– Display information about a packagepkg info -R package
– Display information about a package and its dependenciespkg info -D package
– Display information about a package and its reverse dependenciespkg list
– List installed packagespkg autoremove
– Remove unused packagespkg install package.txz
– Install a package from a .txz file
This is just a small selection of the many commands available in FreeBSD. With these tools at your disposal, you can manage packages, navigate the file system, edit files, and much more. As you become more familiar with FreeBSD, you’ll discover new commands and techniques that can help you work more efficiently and productively.Regenerate response