Is there a cheat sheet for shell commands?
Yes. For more information, read our Getting Started with Linux Commands documentation.
Where can I find programs?
You can find the most common programs in the following locations:
You can use any of the following options to find a program:
- Run the
whereis programcommand to show one or more programs that match your search term.
- If you have more than one copy of a program, run the
which programcommand to find which program the shell calls first.
- If the first two options do not find the desired program, run the
locate programcommand to display every file that matches your search term.
- Before you use these options, use SSH to log in to the shell.
- In the command for each option,
programis the program that you wish to find.
Default locations for common configuration files and directories
Which ports should I open if my cPanel server is behind a firewall?
For a list of the ports that cPanel & WHM services use, read our How to Configure Your Firewall for cPanel & WHM's Services documentation.
How do I find all of the SETUID root files on my server?
The following command will show all of the
SETGID files on the server:
Can I use Linux on any computer?
While Linux is a general term for many operating systems, most distributions of these operating systems support most hardware. You can find more information at your specific operating system's website.
A single job in my crontab sends an email every time that it runs. How can I disable it?
To ensure that a single job in your crontab does not send an email every time that it runs, perform the following steps:
Locate the following string in the crontab:
Add the following string to that line in the crontab:
- Save your changes.
I do not want my crontab to send email. How can I disable this?
To ensure that crontab cannot send emails, remove the contact email address from the crontab.
How do I see what is on the console screen of my Linux server?
To view the data that currently displays on your server's console screen, run the following command:
I use Windows. How can I log in to my server?
You must first download an SSH client. We recommend that you use PuTTY. You can download this free client from the PuTTY website .
How can I view all of the running processes from the shell?
Run one of the following commands:
For more information use about the
ps command, run the
man ps command.
How can I see all of the users with the UID of 0 on the shell?
Run the following command:
How can I check which environment variables a process runs?
Run the following command:
How can I see a list of the users who have logged in to the server?
last command (for example,
last -30). This command displays the last 30 users who logged in to the server.
Can I change the
root user’s default shell?
cPanel requires the
root user to use the bash shell by default. Other users can use shells that are not bash if the system administrator wishes to make this an option.