General VPS Commands

 

All these commands can be run in SSH as the root user

 

top

like windows task manager

We can install "htop" like top but more graphical

 

free -m

show the free, used and total ram in mb

 

CD directory_to_go_to

Will change the current working directory e.g. "cd /etc/"

 

LS

Will list all of the files in the current working directory, add -l for more info e.g. "ls -l"

 

PWD

Display the current directory path.

 

ping ip_address

same as ping in windows cmd, you will need to do ctrl+c to stop the ping.


nano file_name

like notpad for linux, run "yum install -y nano" if you don't have it already

 

find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Display all of the "large files" on your VPS

 

/etc/init.d/httpd stop
/etc/init.d/httpd start
/etc/init.d/httpd restart

stop, start or restart apache, should be done after any config changes

/etc/init.d/mysqld stop
/etc/init.d/mysqld start
/etc/init.d/mysqld restart

stop, start or restart the mysql server

They are some basic commands, not all may work on your VPS server.

These are mainly for LxAdmin CentOS VPS servers.

Kindest Regards,

  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

High Disk Usage?

Hi We have had a few people with high disk usage create support tickets as their sites were very...

How long will setup take for my VPS?

Our VPS services are all setup to be automatically created. Leave it about 15min from your order...

How to disable the built in firewall, IPtables.

Most of our VPS images will come with IPtables installed. If your having connections problems...

How to install cPanel on a VPS?

Create a support ticket and we can install for no charge. Or Use your VPS control interface to...

How to see if my VPS is been brute forced?

Some hackers will try to brute force your VPS passwords, its the same with all servers on the...