Linux
Linux, cPanel, CentoOs
Articles
How to Use Wildcards Safely with find, ls, cp, mv and rm in Linux
Put the pattern in quotes when find should do the matching, leave it unquoted when you want the shell to expand it for ls, cp, mv or rm, and preview every destructive...
How to Use chmod Recursively in Linux (Files vs Directories)
To change the permissions of a folder and everything inside it, use chmod -R, for example chmod -R 755 /var/www/example.com. Be careful with it: -R gives files and...
How to Use the screen Command in Linux: Detach and Reattach
The screen command keeps a terminal session running on your server after you disconnect. Start a named session with screen -S name, run your command, then press Ctrl+a...
How to Use xargs on Linux?
xargs is a command-line tool. If you want to redirect the output of a command as the argument of another command, then xargs is the tool for you. It is a very useful...
How to View Colored Man Pages in Linux?
To get colored man pages in Linux, tell the less pager (the default viewer behind man) which colors to use for bold and underlined text, with a few LESS_TERMCAP...
How to View Configuration Files Without Comments in Linux?
Configuration files often contain more comments than settings. These commands show only the active lines. They work on any Linux system.
Hide comments and empty lines...
How to View File and Command Output in Column Format?
Run the cat command below to view the rootadminz-authors.txt file.
$ cat ucartz-authors.txt
Sample Output...
How to View Python Help Inside vim
Option 1: pydoc, with no plugin required
pydoc shows help for any Python keyword, function or module from the command line:
pydoc keyword
pydoc3 keyword
pydoc len...
How to Watch TCP and UDP Ports in Real-time?
Every network service on Linux listens on a protocol (usually TCP or UDP) and a port number. Here is how to list and watch which ports are open in real time.
List all...
How to add a user to a database and add privileges?
A database user cannot use a database until it has been added to it with privileges.
Steps
Log in to cPanel (for example at https://yourdomain.com:2083, or from the...
How to add an MX entry in cPanel
MX (mail exchanger) records tell other servers where to deliver email for your domain. Change them when your email is hosted somewhere other than your cPanel server,...
How to add an email account in cPanel
With cPanel hosting you can create email addresses on your own domain, such as info@example.com or sales@example.com.
Create the account
Log in to cPanel (for example...
How to add comments to iptables rules in Linux?
To add a comment to an iptables rule, append -m comment --comment "your text" to the rule itself. iptables stores the comment with the rule, so it shows up later when...
How to add ssh key to qcow2 Linux cloud images using virt-sysprep?
Cloud images (qcow2) usually have no password, so you need to add an SSH key before the first boot. virt-sysprep (or virt-customize) can do that without starting the...
How to auto delete Emails on cPanel?
cPanel mailboxes do not delete old messages on their own. You can delete old mail once, or set a cron job that does it regularly.
Delete old mail once
Log in to cPanel...
How to build Perl module rpm file with cpanspec on RHEL/CentOS Linux?
RHEL/CentOS 7 are end of life; these steps are for AlmaLinux 9 / Rocky Linux 9. Installing CPAN modules as RPM packages keeps them under the control of dnf. First...
How to change IP addresses for multiple cPanel accounts in bulk?
To add a new IP address to a server or change the shared IP address of your server. Also, need to update several accounts in as few clicks as possible. This can be...
How to change an email account quota in cPanel
A mailbox quota limits how much mail one account can store. When the mailbox is full, new messages bounce back to the sender.
Steps
Log in to cPanel (for example at...
How to change password for an email account in cPanel?
Change an email password when you think someone else knows it, when a staff member leaves, or when the mailbox sends spam you did not write.
Steps
Log in to cPanel...
How to change the domain name used with addon?
Current cPanel versions can rename a domain directly, keeping its folder and files.
Rename the domain
Log in to cPanel (for example at https://yourdomain.com:2083, or...
How to change the primary language in cPanel?
cPanel can be shown in many languages. The choice applies only to your login; email users choose their own language in Webmail.
Steps
Log in to cPanel (for example at...
How to change your cPanel password?
Use a long, unique password for cPanel, and change it if you think it has been shared or exposed.
If you know the current password
Log in to cPanel (for example at...
How to check and review your website error logs in cPanel?
If your website is not working or an error, we need to check the error log. cPanel offers an in-built error log part that permits you to see the errors.
In this...
How to check running process in Ubuntu Linux using command line
One can use the Ubuntu Linux command line or terminal app to display a running process, change their priorities level, delete process and more. This page shows how to...
How to clear a Cpanel/WHM transfer session which is not able to abort directly from WHM
Sometimes an account transfer in WHM's Transfer Tool stops responding and cannot be aborted from the interface. As root, you can check and abort the session with the...