Back to Help and Info

System CLI Tools

This section provides a collection of useful command-line tools for system administration in Proxmox VE. These tools help you monitor system performance, troubleshoot issues, manage files, analyze network traffic, and perform various administrative tasks.

Many of these tools may have been installed during the post-installation process. For information about the post-installation setup and basic settings, please refer to the Post-Installation Documentation.

System Monitoring

CommandDescriptionAction
htopInteractive process viewer with CPU/memory usage
topDisplay Linux processes in real-time
atopAdvanced system & process monitor
glancesSystem monitoring tool with web interface
nmonPerformance monitoring tool
iotopMonitor disk I/O usage by processes
vmstat 1Report virtual memory statistics every second

Network Tools

CommandDescriptionAction
iftopDisplay bandwidth usage on an interface
nmap <host>Network exploration and security scanning
tcpdump -i <interface>Dump network traffic
netstat -tulnDisplay network connections
ss -tulnAnother utility to investigate sockets
mtr <host>Network diagnostic tool combining ping and traceroute
iperf3 -sRun iperf server for bandwidth testing

File and Text Tools

CommandDescriptionAction
find / -name <filename>Find files by name
grep -r 'pattern' /pathSearch for pattern in files
sed -i 's/old/new/g' fileReplace text in files
awk '{print $1}' fileText processing tool
tail -f /var/log/syslogFollow log file in real-time
less /var/log/messagesView file with pagination
journalctl -fFollow systemd journal logs

Performance Analysis

CommandDescriptionAction
iostat -x 1Report CPU and I/O statistics
mpstat -P ALL 1Report CPU utilization
perf topSystem profiling tool
strace <command>Trace system calls and signals
lsofList open files
pstreeDisplay process tree
slabtopDisplay kernel slab cache information

Security Tools

CommandDescriptionAction
fail2ban-client statusShow fail2ban status
chage -l <username>Show password expiry information
lastlogShow last login of all users
lastShow listing of last logged in users
wShow who is logged on and what they are doing
lynis audit systemSecurity auditing tool
openssl s_client -connect host:portTest SSL/TLS connections

Remote Administration

CommandDescriptionAction
ssh <user>@<host>Secure shell connection
scp <file> <user>@<host>:<path>Secure copy files
rsync -avz <src> <dest>Synchronize files/folders
screenTerminal multiplexer
tmuxTerminal multiplexer alternative
ssh-keygen -t rsa -b 4096Generate SSH key pair
ssh-copy-id <user>@<host>Copy SSH key to server

System Configuration

CommandDescriptionAction
systemctl status <service>Check service status
journalctl -u <service>View service logs
timedatectlControl system time and date
hostnamectlControl system hostname
localectlControl system locale and keyboard
update-alternatives --config <name>Configure system alternatives
dpkg-reconfigure <package>Reconfigure an installed package

CLI Tool Tips

  • Replace <host> with a hostname or IP address
  • Replace <interface> with your network interface (e.g., eth0)
  • Replace <filename>, <service>, etc. with appropriate values
  • Many tools have additional options. Use man <command> or <command> --help to see all available options
  • Installation: If a tool is not available, you can install it using apt install <package>. Most of these tools may have been installed during the post-installation process.
  • For tools that continuously update (like top, htop), press q to quit
  • For screen and tmux sessions, use Ctrl+a or Ctrl+b as the prefix key followed by other commands