FreeBSD Commands: A Quick Primer
🖥️ FreeBSD Commands: A Quick Primer for Beginners
FreeBSD is a powerful Unix-like operating system known for its performance, security, and flexibility. Whether you’re managing a server or exploring BSD for the first time, here are a few essential commands to get you started:
🔧 Basic System Commands
Command | Description |
uname -a | Show system information |
top | Display running processes and system usage |
df -h | Show disk space usage in human-readable form |
freebsd-version | Display the FreeBSD version |
📁 File & Directory Management
Command | Description |
ls -l | List files with details |
cd /path/to/dir | Change directory |
mkdir newdir | Create a new directory |
rm filename | Remove a file |
🔍 Package Management (pkg)
Command | Description |
pkg search nginx | Search for a package |
pkg install nginx | Install a package |
pkg info | List installed packages |
pkg update && pkg upgrade | Update and upgrade packages |
🔒 User & Permissions
Command | Description |
adduser | Add a new user |
passwd username | Change user password |
chown user:group file | Change file ownership |
chmod 755 file | Set file permissions |
💡 Tip: FreeBSD has excellent documentation. Use man command
to read the manual page for any command (e.g., man ls
).
No Responses