![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cleaning core files | ghost01 | UNIX for Dummies Questions & Answers | 5 | 04-19-2009 07:11 PM |
| Tape drive cleaning | RichardHeadd | SCO | 5 | 12-18-2007 05:57 PM |
| Cleaning the content of log files | jyotipg | Shell Programming and Scripting | 1 | 11-15-2006 02:19 AM |
| Cleaning file system | qfwfq | UNIX for Dummies Questions & Answers | 1 | 04-11-2006 01:45 PM |
| cleaning log files | rocker40 | UNIX for Dummies Questions & Answers | 6 | 10-15-2003 03:19 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
doing some spring cleaning....
Code:
USERS="me you jim joe sue"
for user in ${USERS}; do
rmuser -p $user
usrdir=`cat /etc/passwd|grep $user|awk -F":" '{ print $6 }'`
rm -fr `cat /etc/passwd|grep $user|awk -F":" '{ print $6 }'`
echo Deleting: $user '\t' REMOVING: $usrdir
done
This is for AIX ONLY!!! but easily ported to solaris. just deletes the list of people in the USERS variable. i am sure everyone has something like this. so i would just post it for those who dont. do you have anything you wanted to post that helps in your spring system cleaning? Last edited by Optimus_P; 06-14-2001 at 04:48 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|