Need a Minecraft server? BeastNode offers the highest performance servers with DDoS protection!

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)

Was this answer helpful?

 Print this Article

Also Read

How to Login to Your VPS

In this guide, we'll be going over how to login to your VPS via SSH terminal/console....

How To Set A Hostname For Your BeastNode VPS

To set a host name for your BeastNode VPS running on a RedHat distro (CentOS for example), just...

What can I enter for the hostname when ordering?

The hostname is used to identify your VPS (or dedicated server) during the ordering process. It...

How to Use a BeastNode VPS to Backup Your Minecraft Server

This guide will explain the basic steps for you to create your own backup VPS (running on CentOS...

Install Team Fortress 2 Server on a VPS

To run your very own Team Fortress 2 server on a BeastNode VPS (running CentOS 6 64-bit, not...