+ -
当前位置:首页 → 问答吧 → 求个unix的面试题目

求个unix的面试题目

时间:2011-02-22

来源:互联网

有个关于unix的问题.大家直到怎么做吗?

develop a command which kills a specified set of processes in the reverse order in which they were created.

作者: onionw   发布时间: 2011-02-22

假设list.txt保持了一系列进程,大概可以这样做

for i in `tac list.txt`; do
kill $(ps aux| grep $i | awk '{print $2}')
done

作者: dgww   发布时间: 2011-02-22

热门下载

更多