How to freeze the list of processes in htop?

17

4

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

Posted 2016-02-08T07:59:18.250

Reputation: 185

Answers

15

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.

Posted 2016-02-08T07:59:18.250

Reputation: 961

Thank you. What if I set too many seconds and after I want refresh - exists any options how do it? – user1871996 – 2016-02-08T14:14:04.913

I have no idea if there is an option exist. But if you use top instead of htop you can change refresh interval inside the app by typing d key. – Sencer H. – 2016-02-09T08:28:49.293

1My man says: -d --delay=DELAY Delay between updates, in tenths of seconds – cubuspl42 – 2016-05-01T14:51:28.373

5I'm surprised nobody said just press CTRL-S – Keith – 2018-03-09T12:11:30.507

I hate CTRL-S(uspend) short cut. It freezing terminal when I push that combination accidentally. I hate it so much, that's why I never remember existence of that :D Thank you for your reminder. – Sencer H. – 2018-09-14T07:25:47.733

there is a disadvantage of ctrl+s, you cannot select and copy the output. – Wang – 2019-04-23T13:24:16.240

9

As Keith said:

CtrlS Freezes the terminal (you cannot interact with htop afterwards)

... and:

CtrlQ Unfreezes the terminal again.

grandchild

Posted 2016-02-08T07:59:18.250

Reputation: 191

1This works and something I always forget about until I am in VIM and try to use the IDE save shortcuts ;) – Tyler Christian – 2018-08-17T14:13:31.463