答案1
来自top
联机帮助页:
-n : Number of iterations limit as: -n number Specifies the maximum number of iterations, or frames, top should produce before ending.
所以只需运行:
top -n 1
来自top
联机帮助页:
-n : Number of iterations limit as: -n number Specifies the maximum number of iterations, or frames, top should produce before ending.
所以只需运行:
top -n 1