Basic SSH Commands for cPanel / WHM Server Management Month Read Expired: 4 Minute cPanel/WHM is a powerful web hosting management panel that simplifies web hosting operations. However, in some cases, it can be difficult or time-consuming to do it via the graphical interface. At this point, SSH (Secure Shell Access) provides the ability to access and manage the server through the terminal.Panel/WHM is a powerful web hosting management panel that simplifies web hosting operations. However, in some cases, it can be difficult or time-consuming to do it via the graphicacPanel/WHM is a powerful web hosting management panehat simplifies web hosting operations. However, in some cases, it can be difficult or time-consuming to do it via the graphical interface. At this point, SSH (Secure Shell Access) provides the ability to access and manage the server through the terminal. Here are the basic SSH commands that can be useful for managing cPanel/WHM servers: 1. File and Directory Operations:- 'ls': Lists the files and folders in the current directory.- `cd`: Changes the directory.- `mkdir`: Creates a new folder.- `rm`: Deletes a file or folder.- `cp`: Copies files.- `mv`: Moves or renames files.- `nano` or `vi`: Edits files via text editor `cp`: Copies files.- `mv`: Moves or renames files.- `nano` or `vi`: Edits files via text editor. 2. System Information: cp`: Copies files.- `mv`: Moves or renailes.- `nano` or `vi`: Edits files vt editor. 2. Syst cp`: Copies files.- `mv`: Moves or renames files.- `nano` or `vi`: Edits files via text editor. 2. System Information:- `df`: Checks disk usage.- `du`: Shows directory size.- `top` or `htop`: Monitors system resources.- `free`: Checks memory usage.- `uptime`: Shows how long the system has been running. 3. Service Management:- `service`: Checks and manages the status of services.- `chkconfig`: Configures the startup levels of services.- `systemctl`: Manages services in systemd-based distributions.- 'firewall-cmd': Configures the firewall settings. 4. Security Operations:- 'passwd': Changes the user password.- 'firewall-cmd': Configures the firewall settings. 4. Security Operations:- 'passwd': Changes the user password.- `fail2ban-client`: firewall-cmd': Configures the firewall settings. 4. Security Operations:- 'passwd': Changes t firewall-cmd': Configures the firewall settings. 4. Security Operations:- 'passwd': Changes the user password.- `fail2ban-client`: firewall-cmd': Configures the firewall settings. 4. Security Operations:- 'passwd': Changes the user password.- `fail2ban-client`: Checks Fail2ban settings.- `openssl`: Creates and manages SSL certificates.- `ufw` or `iptables`: Adjusts firewall settings. 5. Database Operations:- `mysql` or `mysql -u user_name -p`: Logs into the MySQL database server.- `mysqldump`: Backups databases.- `mysqlimport`: Imports data from external sources.- `mysqlcheck`: Checks and repairs database tables. 6. File Transfer:- `wget`: Downloads files over the internet.- `curl`: Exchanges data via URLs.- `scp`: Safely copies files between servers wget`: Downloads files over the internet.- `curl`: Exchangea via URLs.- `scp`: Safely copies files between serve wget`: Downloads files over the internet.- `curl`: Exchanges data via URLs.- `scp`: Safely copies files between servers.- `rsync- `get`:Downloads files over the internet.- `curl`: ges data via URLs.- `scp`: Safely copies files between servers.- `rsync`: Used for file synchronization and backup operations. 7. Log Files:- `/var/log/messages`: Contains system-wide messages.- `/usr/local/apache/logs/`: Contains Apache log files.- `/var/log/exim_mainlog`: Contains Exim (email server) log.- `/var/log/mysql.`log` or `/var/log/mysqld.log`: Contains MySQL log files. 8. Users and Permissions:- `chmod`: Changes file and folder permissions.- `chown`: Changes file and folder owners.- `adduser` or `useradd`: Creates new user accounts chmod`: Changes file and folder perons.- `chown`: Changes file and folder owners.- `adduser` or `useradd`: Creates new user accoun chmod`: Changes file and folder permissi`chown`: Changes file and folder owners.- `adduser` or `useradd`: Creates new user account chmod`: Changes file and folder permissions.- `chown`: Changes file and folder owners.- `adduser` or `useradd`: Creates new user accounts.- `passwd`: Changes the user password. 9. Network Operations:- `ifconfig` or `ip addr show`: Shows the configuration of network interfaces.- `netstat`: Displays network connections, routing and interface statistics.- `ping`: Checks the reachability of network devices and servers.- `traceroute` or `mtr`: Shows how packets reach a destination. These SSH commands can help cPanel / WHM users manage their servers effectively. However, it is important to use caution when using these commands and to make sure you have the necessary permissionshese SSH commands can help cPanel / WHM users manage their servers effectively. However, it is important to use caution when using these commands and to make sure you have the necessary permissions. In addition, it is important to make sure that backups are taken before making significant changes to the server. #cPanel #SSH #commands #WHM #terminal #commands #cPanel #server #management #WHM #SSH #operations #Linux #server #management #Web #hosting #SSH #commands #cPanel #WHM #secure #shell #access #Server #management #SSH #tips #cPanel #WHM #file #operations #SSH #WHM #database #management #SSH #commands #directory #SSH #operations #Linux Did you find it useful? Thank you for your feedback. Sorry about that :( We'll work to make it better. You voted before. (62 times viewed / 1 people found it helpful)