EN
Deploy on Kvantis →

🚀 Need a VPS? Kvantis — from $10/mo, billed hourly, pay with crypto, no KYC.

Get a server →
Home / Guides / Linux commands cheat sheet for VPS owners
Reference

Linux commands cheat sheet for VPS owners

Updated 2026-10-13 · Kvnthost guides

You don't need hundreds of commands to run a server. These are the ones that come up every week, grouped by what you're trying to do. Commands that change the system need sudo if you're not logged in as root.

Moving around and files

CommandWhat it does
pwdShow the current directory
ls -lahList files with sizes and hidden files
cd /var/wwwChange directory
mkdir -p app/dataCreate directories, including parents
cp -r src dstCopy files or folders
mv old newMove or rename
rm -r folderDelete (no recycle bin — double-check!)
nano file.confEdit a file (Ctrl+O save, Ctrl+X exit)
cat / less filePrint / scroll through a file
grep -rn "text" /etcFind text inside files
find / -name "*.log"Find files by name

Disk and memory

CommandWhat it does
df -hFree disk space per partition
du -sh * | sort -hWhich folders are biggest
free -mRAM and swap usage
ncdu /Interactive disk-usage browser (install first)

Processes and performance

CommandWhat it does
htopLive CPU/RAM per process (install with apt)
ps aux | grep nodeFind a running process
kill 1234 / kill -9 1234Stop / force-stop a process by PID
uptimeHow long the server has run, plus load
nprocNumber of CPU cores

Services (systemd)

CommandWhat it does
systemctl status nginxIs a service running? Recent log lines
systemctl restart nginxRestart after a config change
systemctl enable --now appStart now and on every boot
journalctl -u nginx -fFollow a service's log live
journalctl --disk-usageHow much space the logs take

Network

CommandWhat it does
ip aYour IP addresses
ss -tulpnWhich ports are open and which program listens
curl -I https://example.comTest a website from the server
ping -c 4 1.1.1.1Check connectivity
ufw status / ufw allow 443Firewall status / open a port
Run ss -tulpn after installing anything. If a database (MySQL 3306, PostgreSQL 5432, Redis 6379, MongoDB 27017) listens on 0.0.0.0, it's open to the whole internet — bind it to 127.0.0.1 or firewall it.

Users and permissions

CommandWhat it does
adduser deployCreate a user
usermod -aG sudo deployGive the user admin rights
chown -R deploy:deploy /srv/appChange ownership
chmod 600 fileOwner-only read/write — work it out with the chmod calculator
passwdChange your password

Updates and packages (Ubuntu/Debian)

CommandWhat it does
apt update && apt upgrade -yInstall all updates
apt install htopInstall a package
apt autoremoveRemove leftovers
rebootRestart the server

New to servers? Start with what a VPS is and how to connect over SSH.

Our pick

Deploy a VPS on Kvantis

Hourly billing, paid in crypto, no KYC. Your server is live in about a minute.

  • Plans from $10/month + VAT, billed per hour — destroy anytime
  • 32 locations worldwide, IPv4 + IPv6, full root
  • BTC, ETH, USDT, USDC, LTC and 30+ coins; just an email to sign up

Disclosure: Kvnthost is run by the team behind Kvantis.

Get started on Kvantis →

More: all guides · VPS ping test · tools

🚀 Get a VPS on Kvantis →