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.

84 questions
54
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
  • 12,613
  • 25
  • 66
  • 102
45
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…
zachd1_618
  • 703
  • 2
  • 7
  • 11
44
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,253
  • 2
  • 12
  • 19
37
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,731
  • 7
  • 25
  • 38
35
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
  • 41,240
  • 22
  • 121
  • 214
31
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
  • 413
  • 1
  • 4
  • 4
31
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,036
  • 6
  • 27
  • 39
23
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
  • 12,613
  • 25
  • 66
  • 102
21
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
  • 223
  • 1
  • 2
  • 5
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,065
  • 4
  • 26
  • 42
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
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,640
  • 3
  • 18
  • 36
9
votes
1 answer

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
  • 328
  • 3
  • 14
9
votes
1 answer

Htop is showing 100% cpu usage on thread 1 , on a fresh install of 17.10

I have a freshly installed 17.10.1 (amd64) , my cpu : Intel(R) Core(TM) i7-6700K , and when I'm running the htop command I see that the first thread is always maxed out (98-100%), although I don't see anything using that much CPU . Is this a bug or…
7
votes
2 answers

Why are memory statistics in top and htop different?

Whenever I use top and htop commands to see memory stats, they are always different as shown in figures. Which should I trust?
Goforseeking
  • 181
  • 1
  • 3
1
2 3 4 5 6