如果我运行,top -u username我将看到特定用户的所有进程。有没有办法查看用户通过 sudo 调用的所有进程?
top -u username
process top
如果我正在运行反向 TCP shell 并尝试运行 su,我会收到以下消息:
su: must be run from a terminal
我想在我自己的程序中模拟这种行为,并且想知道如何检测程序是否正在从终端运行?
terminal
process ×1
terminal ×1
top ×1