10 Essential Linux Commands Every VPS Administrator Should Know

VPS Hosting Guide

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.

1

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
2

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.

3

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.

4

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
5

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.

6

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.

7

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.

8

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
9

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.

10

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 auxList all running processes
killStop a process
findSearch for files
grepSearch within files
tail -fMonitor logs in real time
nanoEdit text files easily
wgetDownload files
curlTest URLs and APIs
uptimeCheck 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

Our Partners

©2026 Linkdata.com

Choose a language