Terminal Access in cPanel
Terminal access allows you to log into your hosting account and execute Linux commands directly. This feature is particularly beneficial for developers who need to build, configure, and deploy applications efficiently. Having terminal access from the cPanel interface streamlines tasks, making them faster and more convenient. You can easily search for and execute commands with the assigned privileges.
Caution When Using the Command Line
While terminal access provides powerful capabilities, it's important to be cautious. You should only run commands you are familiar with, as incorrect commands can lead to the deletion of important files or damage your account. If you're not comfortable with the command line or unsure about a specific command, we recommend exploring alternative methods instead. Remember, you do not have full server access; your access is limited to basic functions.
How to Launch the cPanel Terminal
-
Log in to Your Account:
- Go to 4xhost and log in to your account. Then navigate to the Products & Services section.
-
Access cPanel:
- Click on the “Login to Control Panel” button.
-
Open the Terminal:
- In the ADVANCED section of cPanel, click on the Terminal icon.
-
Acknowledge the Warning:
- Read the warning message and click the “I understand and want to proceed” button.
This will take you to the terminal window where you can start executing Linux commands.
NOTE: If you do not see the terminal option in your cPanel, it means SSH access has not been enabled for your account. Please send an email to support@4xhost to request SSH access.
Basic Linux Commands to Get Started
Once you have terminal access, you can use various basic Linux commands. Here are some commands to try:
Description | Command |
---|---|
What directory am I in? | pwd |
List files | ls -l |
Change directory | cd name-of-directory |
Change to your home directory | cd ~ |
Delete a file | rm filename |
Read the contents of a file | cat filename |
Rename a file | mv oldfilename newfilename |
Make a new directory | mkdir directory |
Copy a file | cp filename newfilename |
How much disk space is left? | df |
Installing Applications via Terminal
You can perform common terminal operations, such as installing applications, using a single command instead of navigating through the Software Centre. This efficiency is one of the key advantages of using terminal access.
Feel free to explore the command line and utilize its capabilities, but always proceed with caution to ensure the integrity of your files and account.