How to get a list of re-sellers’ name under your WHM/cPanel server – Command-line option

Hey, we already discussed about How to list all accounts name under a cPanel re-seller, click here for more details “list of total cPanel users under a specific re-seller

Here I am explaining the command-line option to find out the re-sellers’ name on your WHM server. In WHM based server, there is a file ‘/var/cpanel/resellers‘ which has information about re-sellers. Actually the /var/cpanel/resellers is little complicated to understand, do not worry about that, here is a command line option for finding the re-sellers name only.
You can simply grep out the re-seller name from /var/cpanel/resellers

Syntax I:

# cat /var/cpanel/resellers | grep -o '^[a-z][a-z0-9]\{0,7\}'

Syntax II:

# grep -o '^[a-z][a-z0-9]\{0,7\}' /var/cpanel/resellers

Example:

# grep -o '^[a-z][a-z0-9]\{0,7\}' /var/cpanel/resellers
kirno
dlsmwwtc
twwag
tetipbc
.....

That’s it 🙂

Related:
check the version of your WHM/cPanel from command line
Important cPanel service’s configuration file, path, service name, port – Command line view
How to terminate/delete a cPanel account through SSH
list of total cPanel users under a specific re-seller

Something more about cPanel  , See the category CPANEL

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

One thought on “How to get a list of re-sellers’ name under your WHM/cPanel server – Command-line option

Leave a Reply

Your email address will not be published. Required fields are marked *