How to use the cPanel Terminal

Updated 1 month ago 22 views

Using the cPanel Terminal

The cPanel Terminal gives you command-line access to your account:

  1. Log in to cPanel
  2. Go to Advanced > Terminal
  3. A new browser window opens with a shell prompt
  4. You are now in your home directory

Common commands:

  • ls - List files and directories
  • cd public_html - Change to your web root
  • pwd - Show current directory
  • tar -czf backup.tar.gz folder/ - Compress a folder
  • mysql -u username -p database < file.sql - Import a database
  • wget URL - Download a file

Note: Terminal access may not be available on all plans. Contact support if you need shell access.

Security: Never run commands you do not understand. The terminal operates within your account permissions and cannot access other users' files.

Still need help?

If this article did not answer your question, our support team can help.

Contact support
Top