Operating System - HP-UX
1752661 Members
5396 Online
108788 Solutions
New Discussion юеВ

Re: once again time to show off your brain!

 
Sundar_7
Honored Contributor

Re: once again time to show off your brain!

Last login time of all the users

logins | awk '{print $1}' | xargs -tn1 getprpw -m slogint
Learn What to do ,How to do and more importantly When to do ?
Abdul Rahiman
Esteemed Contributor

Re: once again time to show off your brain!

Top users taking space on home directories..

# du -sk /home/* | sort -n -r | more
No unix, no fun
Michael Tully
Honored Contributor

Re: once again time to show off your brain!

Here's my favourite. It looks in the sulog for bad root attempts. I actually run this out of cron at defined periods, but just as easy from the command line.

# cat /var/adm/sulog | awk '$4 == "-" {print $0}' | grep 'root$'
Anyone for a Mutiny ?
Dan Martin_1
Frequent Advisor

Re: once again time to show off your brain!

There should be a tab or spaces before the "\1" in my previous one-liner, so that the PV names are indented.
Michael D. Zorn
Regular Advisor

Re: once again time to show off your brain!

(Try doing any of those in a GUI.....)

One I use a lot - show the most recently changed/created files in a directory:

ll -t | head -23

I make it an alias for "llast".