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


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

That’s it 🙂

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

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

Leave a Reply

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