Some useful SSH commands.

1. To know the free space in all mounted file system: df -h (Shows used and free space in all mounted file systems)

2. List all rules in iptables: iptables -L

3. Restart apache: service httpd restart

4. Restart MySQL: service mysql restart

5. Restart exim: service exim restart

6. Restart Cpanel: service cpanel restart

7. To upgrade cpanel version:  /scripts/upcp --force.

8. Backup MySQL Database Shell Command:

mysqldump -u username -p password databasename > databasefile.sql (backup MySQL database to databasefile.sql).

9. Restore MySQL Database Shell Command:

mysqldump -u username -p password databasename > databasefile.sql :Restore a MySQL databse from databasefile.sql.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to install cPanel on a new server?

Installing cPanel requires a minimal installation of the OS.Login to the server as root and run...

Accessing cPanel/WHM and fixing basic issues

CPanel/WHM Logging in for the first time After you have received the welcome e-mail. you can...

Can you guarantee my server will be hacker proof?

No, nobody can, It is impossible to make a server hacker proof, that's a fact. This is even more...

Important logs in Cpanel

Exim main log: /var/log/exim_mainlog Apache access log: /usr/local/apache/logs/access_log...

How can you offer unlimited admin time?

Our managed dedicated servers include unlimited admin time which means that we do not limit the...