System CLI Tools

Help and Info~5 minView script

Daily-driver CLI tools for Proxmox host administration, grouped by purpose: monitoring, network, file & text, performance analysis, security, remote admin and system configuration.

Some tools need to be installed first

Several of these tools are not installed by default, not even by Post-Install with its default selections. To add them, ProxMenux's System Utilities Installer offers them as predefined groups (basic, dev, network, analysis, …).

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

Use tmux / screen for long-running commands

Long-running work — a backup, a lengthy upgrade or a large rsync transfer — should run inside tmux or screen so an SSH disconnect does not end the terminal session. For a tmux session, reconnect to the same host as the same user and run tmux attach. Screen sessions use their own reattachment command.

Related