AIX: kill all the processes started by an user
You can kill all the processes started by an specific user using the following methods:
1. login as the user (su if you are a root) and execute killall
2. form the kill command using a ps/awk/ksh combination
ps -u <user> | awk '{print "kill -9 "$2""}' | ksh
3. use xargs to do the same
ps -u <user> | awk '{print $2}' | xargs -t kill -9
I prefer the (3) as it takes care of long listing of processes and it does the executes on kill command for all the processes.
Additional notes:
find . -name "*.bak" -print0 | xargs -0 -I file mv file ~/old.files
Additional notes:
find . -name "*.bak" -print0 | xargs -0 -I file mv file ~/old.files