How do I get top
to quit similarly to the way less
quits, that is, not leaving behind its output on the screen?
This is the version I have:
procps-ng version 3.3.9
How do I get top
to quit similarly to the way less
quits, that is, not leaving behind its output on the screen?
This is the version I have:
procps-ng version 3.3.9
When I play a movie with SMPlayer (video:mpv) and I check my CPU usage with GNOME system monitor, it shows %4 or %5 CPU usage (1 second update interval), but htop
shows %45 CPU usage:
top
shows the same load as htop
:
Since My CPU fan RPM goes higher when I'm playing movie with SMPlayer. I suspect top
is reporting CPU usage more accurately.
I have Intel i7 920 with 6GB RAM.
Why do I have high CPU usage and why do I see different results on top
and in GNOME system monitor?
Why are some processes highlighted in top? Does highlight have special meaning? Thanks!
How can I configure 'top' to show all values in human readable format instead of long numerics. I am using Ubuntu 14.04.
Sample output I am getting at the moment:
top - 11:39:56 up 14:46, 11 users, load average: 1.14, 1.61, 1.35 Tasks: 248 total, 2 running, 246 sleeping, 0 stopped, 0 zombie %Cpu(s): 3.5 us, 1.4 sy, 0.1 ni, 93.3 id, 1.2 wa, 0.5 hi, 0.0 si, 0.0 st KiB Mem: 8040568 total, 7814164 used, 226404 free, 155912 buffers KiB Swap: 8249340 total, 208240 used, 8041100 free. 4688852 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7106 pavan 20 0 1439336 58244 17120 S 2.7 0.7 11:12.32 compiz 19358 pavan 20 0 685616 27460 11568 S 2.7 0.3 0:52.53 gnome-terminal 1011 root 20 0 328568 37232 22796 S 2.0 0.5 5:30.76 Xorg 8879 pavan 20 0 895572 144464 13112 S 2.0 1.8 2:42.05 chrome 7135 pavan 20 0 422640 8956 6436 S 1.7 0.1 4:38.53 indicator-multi 8842 pavan 20 0 1113460 62956 14084 S 1.3 0.8 5:20.84 chrome 6879 pavan 20 0 524448 45100 10440 S 1.0 0.6 3:18.77 unity-panel-ser 8060 pavan 20 0 1107068 171568 52644 S 1.0 2.1 13:41.37 chrome
I want to write batch or something, that will write output of top
into a file on login.
I did top >> output-file
, but it contains some strange character!
Can somebody give a simple tutorial about how to write batch file in Linux?