Top Banner
← Back to Blog

Linux & Ubuntu Essential Commands Every Server Administrator Should Know

Linux Ubuntu Commands Guide

Learn the most useful Linux and Ubuntu commands for managing servers, monitoring resources, troubleshooting issues, securing systems, and running production workloads.

LinuxUbuntuDevOpsServer AdminHosting

In This Guide

✓ System Information
✓ File Management
✓ User Management
✓ Networking
✓ Package Management
✓ Process Monitoring
✓ Disk Usage
✓ Logs & Troubleshooting
✓ Security Commands
✓ SSH Commands

System Information

hostnamectl
uname -a
uptime
whoami
lscpu
free -m

File Management

ls -lah
pwd
mkdir myfolder
cp file.txt backup.txt
mv old.txt new.txt
rm -rf foldername
find / -name "*.log"

Package Management

sudo apt update
sudo apt upgrade -y
sudo apt install nginx
sudo apt remove nginx
apt list --installed

Process Monitoring

top
htop
ps aux
kill -9 PID
systemctl status nginx

Networking Commands

ip a
ping google.com
curl ifconfig.me
ss -tulpn
netstat -tulpn
traceroute google.com

Disk Usage

df -h
du -sh *
lsblk
fdisk -l

Logs & Troubleshooting

journalctl -xe
tail -f /var/log/syslog
dmesg
tail -100 /var/log/nginx/error.log

Security Commands

sudo ufw status
sudo ufw allow 22
sudo fail2ban-client status
last
sudo passwd username

SSH Commands

ssh user@server-ip
ssh-copy-id user@server-ip
scp file.txt user@server:/home/user

CloudRevol Linux Administration Tips

  • ✓ Enable automatic security updates
  • ✓ Configure UFW firewall
  • ✓ Monitor server logs daily
  • ✓ Use SSH keys instead of passwords
  • ✓ Keep Ubuntu updated regularly
  • ✓ Monitor disk usage frequently
  • ✓ Backup critical data regularly