Ads 468x60px

Saturday, March 28, 2009

0
kill pts

dasar newbie seperti aku ini, yang baru baru aja ngoprex linux khususnya centos v5.2
kelabakan setelah server yang gua pakai sering hang hehehe.. nah aku liat liat
di who, untuk tahu siapa aja yang pakai ternyata pts ku yang ku pakai tadi masih aja ada,
ya apa boleh buat aku harus tahu caranya delete tuh pts yang ga kepakai..hehehe..
oke deh langsung aje ye...emang seh aku ga begitu bagus bahasa england nya tapi kuharap anda anda juga pasti ngerti lah apa yang aku dapet seperti yang dibawah ini... hehehe
simple dan jelas kok broo... oke segini dulu ya ntar sambung lagi

check the user in the system with w or who: -
[root@rhino ~]# w
18:41:09 up 7 days, 52 min, 3 users, load average: 0.08, 0.09, 0.02
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/1 ip-135.18.111-mcm.net.id 16:44 1:49m 0.01s 0.01s -bash
rhino pts/2 ip-135.18.112-mcm.net.id 18:03 20:14 0.05s 0.05s -bash
rhino pts/3 ip-135.18.113-mcm.net.id 18:40 0.00s 0.02s 0.01s sshd: rhino [pri

[root@rhino ~]# tty
/dev/pts/3

see, total is 3 users, as myself is rhino, so i would like to kill user root for both session pts1 and pts2

So, this is the killing command, to kill the pts1 just do as the command like below: -
[root@rhino ~]# skill -KILL -v pts/1
pts/1 root 25170 bash

Now, i kill the pts2 sesssion: -
[root@rhino ~]# skill -KILL -v pts/2
pts/2 root 26041 bash

Check and ensure whether the user has been killed or not:-
[root@rhino ~]# w
18:41:31 up 7 days, 52 min, 1 user, load average: 0.06, 0.08, 0.02
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
rhino pts/3 ip-135.18.113-mcm.net.id 18:40 0.00s 0.02s 0.01s sshd: rhino [pri

0 comments:

Post a Comment

 
shyrod_IT | © 2010 by DheTemplate.com | Supported by Promotions And Coupons Shopping & WordPress Theme 2 Blog | Tested by Blogger Templates | Best Credit Cards