How do I redirect Top output to a file in Linux?

Đạt Michio

New member
How do I redirect Top output to a file in Linux?
Answer
However, besides real time viewing of the running system, top command output can be saved to a file, by using the -b flag, which instructs top to operate in batch mode and -n flag to specify the amount of iteration the command should output. In the below example, we’ll redirect the output of top command to top.
 

Tìm kiếm

Back
Top