Questions tagged [htop]

htop is CLI-based command that gives information on processes and memory usage, similar to top.

htop Install htop is not a pre-installed application and we can get it easily in the Software Center (by clicking that link), or by running these commands:

sudo apt-get update
sudo apt-get install htop

htop provides information about running processes and their resource usage in a way that many of its users consider more accessible than top. Novices may be able to use htop more easily than top, and its ease of use make it attractive to a number of more experienced users as well.

In particular, htop lets you scroll up and down, and lets you kill processes without manually specifying their process ID numbers.

See man top and man htop for more information.

90 questions
65
votes
2 answers

Display only processes by a user in htop?

How can I display only the processes of a specified user in htop? Applying a filter (F4) doesn't seem to work, because it doesn't seem to apply the filter on the USER column.
a06e
  • 14,233
50
votes
1 answer

What Does Cached Memory Mean when Viewing htop?

While viewing the reports of htop, I would like to know what the orange/brown 'cached memory' bars actually indicate. Really I'm looking for a more practical explanation of what I'm looking at, rather that pure CS terms. Though I'd like to have…
47
votes
5 answers

How to kill htop if I can't use F10?

I use htop in a terminal but I can't close it with F10. F10 seems to just open a program's File dialog. Is there a way to disable it so I can close htop normally?
Pithikos
  • 1,493
41
votes
5 answers

How to save htop output to file?

How can I save the output of htop to a file? With top, I can run top -b -n1 > top.txt where -b specifies batch mode and -n specifies the number of iterations. But the man page of htop doesn't offer such a possibility. Is taking a screenshot the…
DK Bose
  • 44,553
38
votes
4 answers

kill process with htop

Sometimes I need to kill a process and for that purpose I enter htop, search (/) for some string and then intend to kill the associated process. The problem is that usually the processes are in motion (due to new processes being added and attributes…
Raffael
  • 3,821
38
votes
3 answers

How can I save the view to sort by CPU usage?

Can I somehow modify htop's default view to display processes sorted by CPU usage? I want htop to "remember" my view/sort method. If it's relevant, I'm currently on Xubuntu 13.10.
henry
  • 2,165
34
votes
1 answer

how to find a specific process by pid in htop

I try find a specific process by pid, in htop, the search function toggled by F3, seems can't do this. I type in 512, instead of 512 process, the process with pid 710 is highlighted.
attolee
  • 443
28
votes
2 answers

Anchor htop to one specific process?

I have a long list of processes displayed in htop, but I am only interested in one of them. As old processes terminate and new processes are spawned, htop keeps updating the displayed list of processes, which means that the one process I am…
a06e
  • 14,233
26
votes
1 answer

How to see thread name in htop?

htop shows the name of process for all of its threads even a thread has a customized name. How should I force htop to displays customized name of threads?
Barry Hayden
  • 273
  • 1
  • 3
  • 5
17
votes
2 answers

Avahi daemon uses excessive amounts of CPU?

It seems that avahi-daemon process, which is unknown to me, is using excessive amounts of CPU on my system I have tried both htop and system monitor, and only htop show the CPU use. Screenshots are included below. What can I do to make avahi-daemon…
Livy
  • 408
  • 1
  • 6
  • 16
14
votes
1 answer

htop displays identical program in multiple lines

When I use htop, I found that an identical program occupies multiple lines: Additionally the PID could not be traced: me@host:~$ ps 16255 16256 16259 24772 16254 PID TTY STAT TIME COMMAND How could such an obscure happening?
Alice
  • 1,750
14
votes
1 answer

GNOME system monitor and top showing different CPU usage

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…
ICE
  • 2,075
12
votes
2 answers

What are the different htop kill signals?

I have recently started using htop, and I have been needing to kill processes, but when pressing F9 on the process, it has been giving me this list of options, I just chose the one which is selected by defaults, but I don't know what that actually…
user364819
11
votes
2 answers

How do you see the cpu temperature in htop command? Does this work for WSL?

Is there a way to see the CPU temperature in htop. I am using windows10 wsl, so I'm not sure if WSL1 has access to CPU temperature reading.
10
votes
1 answer

reset or completely remove an installation/htop

I usually use htop in tty when I need to kill a program... or whatever hangs or slows down my pc,now I screwed it up. I tried making changes in htop from the 'setup' option which is accessed by pressing F2 key,and by mistake filled the screen and…
1
2 3 4 5 6