The terminal is one of my new favorite additions to Cpanel and WHM. The terminal is very cool but remember, it can also be an extremely dangerous tool if not used properly. Please take extra care and caution when running commands in the terminal if you do not know what they do. The terminal can assist you in a wide variety of tasks on the server. If there is something that can be done from the control panel, it can probably be done somehow in the terminal and a whole lot more.

Things like installing specialized software to run on your server, checking specific server stats and information, become a breeze with a few commands. Below is how you can access the terminal and a few harmless commands that you can use to look at things on your server.

If you access the terminal from root, you have full access to the server. wrong commands can lead to data loss. If you are accessing the terminal from cpanel, you will only have user privileges, so your options will be limited here. If this is your first experience with a terminal, we suggest creating a new cpanel account, and practicing there. Since this is a test account, there will be no active data and any harm done, can be fixed by removing the account and recreating it.

To access the terminal, login to WHM or cpanel and search for  “terminal”:

 

WHM >Server Configuration > Terminal

<<

WHM >Server Configuration > Terminal

 

Cpanel > Advanced > Terminal

>>

 

 

This is the warning you get when you access the terminal. It is there for a reason. Be careful with the commands you run:

 

 

Once you click to proceed, you will be faced with this nice black box:

 

Now that you are in what can you do with it? The terminal is rather useful for file management and manipulation, and it also great for installing things that don’t have a Graphical installer. Things like redis, memcache, all need to be installed from the command line, or this terminal.


Here are a few commands to get you going:

ls – List the contents of your current directory.

 

 

 

 

 

cd – Change to another directory

pwd – Print the current working directory

 

 

 

 

 

mkdir – Create a new directory

 

 

 

 

vi – Text editor, edit files

nano – Text editor, edit files

ps faux – List running processes on your server

top – Show a live process manager

free -m – Check your memory stats in megabytes

df -h – Check your disk space in human readable format

Check out these related articles:


Leave a Reply

Your email address will not be published. Required fields are marked *