inside the mind of a linux admin

view suspended user’s acct size and reason

Use this to output a human readable list of suspended cPanel users. Helpful when performing disk reclamations, outputs an available suspension reason along with size of the account:


# cd /var/cpanel/suspended
# for i in * ; do echo -n "$i - "; cat $i ; echo -n " ### suspension date: `ls -la $i | cut -d' ' -f 6-8`" ; echo -n ' ' ; echo -n ' ### account size: ' ; du -sh /home/$i ; done

Will return an output such as:

user56 – moved ### suspension date: Nov 18 11:48 ### account size: 5.1G /home/user56
user57 – moved ### suspension date: Nov 18 11:48 ### account size: 3.0G /home/user57

Related Posts

How to revert back to X11 / Xorg from Wayland

Wayland is intended as a “simpler replacement for X”, and is getting quite a bit of hype around the Linux community. So much so, that it’s the default in the latest versions of Fedora, GNOME, KDE and others. While Wayland may be the future, it really is in future. At least for Ubuntu 17.10. The […]

Read More

Touchpad stops working after sleep + resume (Fedora 26 on Dell XPS)

After recently upgrading my Dell XPS 13 w/Touchscreen to Fedora 26, the touchpad suddenly stopped working upon resuming from sleep mode. It was reproduced 100% of the time, and required a complete restart in order to get the touchpad working again. There have been several forum posts and bug reports regarding others experiencing these exact […]

Read More

1 Comment

  • Garmin GPS Systems on Wednesday, March 31, 2010

    This is very good information post. I just roughly ready through your post. Now I have not much time. Will bookmark it and comeback to read tonight. Regards.

Leave a Reply

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

Twitter: kireguy

Tweeter button Facebook button Myspace button