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
One thought on “How to get a list of re-sellers’ name under your WHM/cPanel server – Command-line option”