This topic created in 5266 days ago, the information mentioned may be changed or developed.
比如./a.out abcdefg
a.out一直在运行,然后我想查看到参数(command line)是什么……
不知道如何操作,谢谢各位。
8 replies • 1970-01-01 08:00:00 +08:00
 |
|
htop
|
 |
|
ps aux | grep a.out
|
 |
|
ps -ef 能看到所有在跑着的进程及其启动参数
ps -ef | grep a.out 只显示特定的进程相关的信息
|
 |
|
ps -ef | grep a.out
|
 |
|
还可以 cat /proc/$pid/cmdline
|
 |
|
cat /proc/$pid/cmdline +1
|
 |
|
/proc 这个是Linux才有吧?
|