回答:
-nスイッチは、あなたが検索するものです。
user@host:~$ top -n 1
マンページを参照してください
-n : Number of iterations limit as: -n number
Specifies the maximum number of iterations, or frames, top should produce before ending.
topコマンドを停止したい場合は、を押してくださいq。
注意:topスクリプトで使用する傾向がある場合は、スクリプト用でtopはないので、ps代わりに使用してください。
topと思うので、スクリプトで使用していますps。私が間違っている?
man command)。