Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做一个killall -u(针对指定用户),但-u在 RedHat 3 下不存在参数。有替代方案吗?
killall -u
-u
解决了skill -u user -c process_name
skill -u user -c process_name
谢谢安科森
看看技能,特别是-u选项。我无法验证,因为我没有可用的 Red Hat 3 环境。
或者您可以使用这样的解决方案
ps aux | grep -ie user | awk '{print "kill -9 " $2}'