Operating System - HP-UX
1826325 Members
3515 Online
109692 Solutions
New Discussion

Re: The 3 most ingenious UNIX line commands are ...?

 
Rita C Workman
Honored Contributor

Re: The 3 most ingenious UNIX line commands are ...?

Here's a couple I like:

#w | sort -k1
#kill

..& everything I've aliased in my .profile....


Rgrds,
Rita

Rodney Hills
Honored Contributor

Re: The 3 most ingenious UNIX line commands are ...?

To terminate sessions where the users have not typed anything for more than 1 hour.

who -u | awk '$6~/^[1-9]:/{print $7}' | xargs -n 1 kill -15

-- Rod Hills
There be dragons...
George Liu_2
Frequent Advisor

Re: The 3 most ingenious UNIX line commands are ...?

bdf
ls
su -