User shortlisting

souvikganguly

Verified User
Joined
Oct 21, 2022
Messages
20
Hi,

I want to know how can I filter users who has lesser than 5 MB of data occupied in thier /home directory.
 
You can use find or du for that.

Try this.
du -h --max-depth=1 /home | sort -r -k1,1n
this one will give you the use of all users starting with the smallest and the biggest on the end.
 
Is there any way or any script to identify and terminate inactive users that have not been active for 6 months ?
 
Back
Top