Knowledge Base Article

Some basic commands that you need to manage your Dedicated server via SSH?

If you are not familiar with using shell (SSH) you will find the commands below a good start. They are amongst the most used ones by all the administrators worldwide.

top - this command shows information about the running processes on your server, uptime, cpu usage and memory usage. You will see the most resource-consuming processes at the top of the table;

ls - this command will show you the content of a directory;

ps -auxf - this command will show you the currently running processes on your server;

who - this command will show you the users currently logged via SSH on your server;

pwd - shows the directory you are currently in;

rm sample_file.txt - this command will delete the sample_file.txt file;

rm -rf sample_folder - this command will delete the sample_folder directory and all the content in it;

tail sample.file - this command will show you the last lines of a file. It is very useful when you read logs;

tail -n100 sample.file - this command will show the last 100 lines of the sample.file file;

mkdir test_dir - this command will create a new directory named test_dir;



Rating

Please indicate if this article was helpful for you.

rating :  4.8 from 5
views :  1053
votes :  4

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!