10 Essential Linux Commands Every VPS Administrator Should Know
10 Essential Linux Commands Every VPS Administrator Should Know
Whether you are managing your first Virtual Private Server or maintaining production infrastructure, knowing the right Linux commands can help you work faster, troubleshoot issues, and keep your server secure.
ls — List Files and Directories
The ls command shows the contents of a directory.
ls ls -l ls -la
Use it to:
- Check website files
- View configuration files
- Display hidden folders such as .ssh
cd — Change Directory
Use cd to move between folders on your VPS.
cd /var/www/html cd .. cd ~
This is one of the most used commands when managing websites, logs, and server files.
pwd — Print Working Directory
The pwd command shows your current location inside the server.
pwd
This is useful when working across multiple folders or terminal sessions.
top or htop — Monitor Server Performance
Use these commands to view CPU usage, memory consumption, and active processes.
top htop
Useful when:
- Your VPS feels slow
- CPU usage is high
- You need to find resource-heavy processes
df -h — Check Disk Space
Running out of storage can cause websites, databases, and applications to fail.
df -h
The -h option shows storage in a human-readable format.
free -h — Check Memory Usage
This command shows RAM and swap usage.
free -h
It helps identify whether your VPS needs more memory or better optimisation.
systemctl — Manage Services
Most modern Linux servers use systemd to manage services.
systemctl status nginx systemctl restart nginx systemctl start nginx systemctl stop nginx systemctl enable nginx
Common services: nginx, apache2, mysql, mariadb, docker, ssh.
journalctl — View System Logs
Logs are often the fastest way to understand server issues.
journalctl journalctl -u nginx journalctl --since today
Use it for:
- Failed services
- Application crashes
- Boot and system errors
chmod and chown — Manage Permissions
Incorrect permissions are one of the most common causes of website and application errors.
chmod 755 folder chown www-data:www-data file
Use them carefully to control who can read, write, or execute files.
ssh — Securely Connect to Your VPS
SSH is the standard way to remotely access and manage a VPS.
ssh username@your-server-ip ssh root@192.168.1.10
For better security:
- Use SSH keys
- Disable password login where possible
- Restrict root access
- Enable a firewall
Bonus Commands Worth Learning
Once you understand the basics, these commands will make VPS administration even easier.
| Command | Purpose |
|---|---|
| ps aux | List all running processes |
| kill | Stop a process |
| find | Search for files |
| grep | Search within files |
| tail -f | Monitor logs in real time |
| nano | Edit text files easily |
| wget | Download files |
| curl | Test URLs and APIs |
| uptime | Check uptime and load average |
Run Your Server with Confidence
Linkdata VPS hosting gives developers, system administrators, and businesses the control, performance, and flexibility needed to host websites, applications, databases, and more.
Explore Linkdata VPS




















