如何在shell中为连接的用户打印运行命令?

时间:2014-04-10 06:02:48

标签: bash shell

ps -ef | grep --color "ilir1477" | awk '{print $NF}'

请向我解释。

1 个答案:

答案 0 :(得分:2)

这就是你想要的吗?

$ ps -u ilir1477 -o args=