58

I'd like to stop refreshing the list of processes. My problem is it refreshes itself too often.

How can I do it? I use htop.

user1871996
  • 695
  • 1
  • 6
  • 6

3 Answers3

55

UPDATE: For new versions (>=3.0) of the htop check out this answer

For versions < 3.0:

Most easy way is suspending the terminal with CTRLS, and unfreezing with CTRLQ while htop or any other flowing display is running. (Thanks to Keith for this reminder of easy tip)

Also, you can change refresh interval with putting -d key before running the htop for example:

# htop -d 100

The number 100 indicates the delay between updates, in tenths of seconds. You can change the refresh interval as you like. But there is no pausing support for now.

Alternatively, you can use screen capture tools for freezing the moment in graphical interface if you are on any desktop environment. In the short hand you can press PrtScr key at any time. Or you can install and use any kind of screenshot or screen recorder applications.

Sencer H.
  • 1,390
43

In htop version 3.0+, use Shift Z inside of htop to pause process list updates. You will still be able to navigate around this way.

If you forget the shortcut, you can find it with F1 from inside htop, or externally with man htop. Just note that they denote Shift + z as just one capital letter Z.

VasyaNovikov
  • 3,656
21

As Keith said:

  • Ctrl + S Freezes the terminal. (You cannot interact with htop afterwards.)

  • Ctrl + Q Unfreezes the terminal again.