赶走一些你不希望进入的用户
ReadyGo!技术成就梦想
网络搜索
efish
2008-2-24 2:50:28
因为各种原因,你可能不想让某个用户登陆在系统上,下面的脚本可以帮助你实现这个愿望:
#whiletrue
>do
>kill-9$(ps-aux|grepusername|awk"{print$2}")
>sleep2
>done
#whiletrue
>do
>kill-9$(ps-aux|grepusername|awk"{print$2}")
>sleep2
>done
-
相关文章
也谈在Unix系统中杀死相关终端的进程
也谈在Unix系统中杀死相关终端的进程
从ifconfig中得到IP地址
从ifconfig中得到IP地址
FREEBSD下使用crunch集成编译程序
FREEBSD下使用crunch集成编译程序
Shell初学者的入门知识
Shell初学者的入门知识
30分钟搞定BASH脚本编程!
30分钟搞定BASH脚本编程!
利用ip_conntrack表实现封ip的shell脚本,并有简单的…
利用ip_conntrack表实现封ip的shell脚本,并有简单的web发布
HowtoCreatingandBootingaNewKernelWithautoconfig
HowtoCreatingandBootingaNewKernelWithautoconfig
批量添加用户
批量添加用户
shell技巧
shell技巧
两个很详细的shell实例
两个很详细的shell实例
2秒记住本站域名
玩过泡泡龙吗?Readygo?Go! 再加上.Com.Cn的后缀,那就是大名小顶的ReadyGo.com.cn
