Need a Minecraft server? BeastNode delivers awesome performance at a great value!

SHOP FOR PLANS NOW


Common Linux SSH/Shell Commands

This is a list of frequently used Linux SSH/shell commands. It may not apply to all Linux distributions.

cd : change directory (ex: cd /home)

dir: list files in directory
ls : list files in a certain directory (ex: ls /home)
ls -al : list all files in current directory

vi : opens vi editor to edit files (ex: vi filename)

rm : deletes a file (asks for confirmation)
rm -f : deletes a file w/o confirmation
rm -rf : deletes a folder and all files within it w/o confirmation (be very careful!)

cp : copy a file (ex: cp file1 file2)

top : shows live system stats such as CPU, RAM, load, etc

ps : shows process status - every program on the VPS will have a process ID (PID)
ps aux : shows all processes
ps U username : show processes from user

df -h : show disk space and partition info
du -sh : shows disk space summary in human readable format (ex: du -sh * - shows disk space usage of everything in current directory)

kill : terminate a process (obtain process IDs via "top")
kill -9 : force kill a process (ex: kill -9 PID)

  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

Install Minecraft Pocket Edition Server (Nukkit) on CentOS 7 64-bit

Installing Minecraft: Pocket Edition servers has never been easier with the advent of Nukkit (the...

Emails Not Being Sent

By default, email ports are blocked from outbound connections to reduce abuse and lower the...

Securing your VPS

Running a VPS can be risky if you do not go through with some basic security measures before...

How to Use the VPS Serial Console

The VPS serial console allows you to access your cloud VPS server with SSH directly from the back...

How to Install Apache Web Server and PHP on CentOS VPS

How to Install the Apache Web Server and PHP on CentOS VPSThis guide will explain the basics on...