fedlerner

Active Member
Oct 31, 2007
33
0
56
Argentina
Is there a way to get all the account USERNAMES into a file?
I was thinking something like:
Code:
ls /home/ > /path/to/file/file.txt
But this is not effective, as it just lists all folders/files on /home.... :S
 

JawadArshad

Well-Known Member
PartnerNOC
Apr 8, 2008
459
7
68
PK
cPanel Access Level
DataCenter Provider
Is there a way to get all the account USERNAMES into a file?
I was thinking something like:
Code:
ls /home/ > /path/to/file/file.txt
But this is not effective, as it just lists all folders/files on /home.... :S
Try this.

ls -al /var/cpanel/users | cut -d" " -f5 > /path/to/file.txt