Htop Process Actions, Signals, and Priority Changes

Use htop to renice, kill, tag, and inspect processes, including shortcuts for signals, strace, lsof, and affinity-related workflows.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all

Priority and signals

Interactive actions that change process behavior directly from htop.

Increase priority

Lower the nice value of the selected process.

textANYprioritynice
text
F7 or ]
Notes

Requires appropriate permissions, typically root.

Decrease priority

Raise the nice value of the selected process.

textANYprioritynice
text
F8 or [
Notes

Useful when background jobs should yield more CPU to foreground work.

Send a signal to a process

Open the kill menu for the selected or tagged processes.

textANYkillsignal
text
F9 or k
Notes

Choose the signal interactively, such as TERM or KILL.

Use htop to locate a PID, then kill from shell

Classic shell companion flow.

bashANYkillshellterm
bash
kill -TERM 12345
Notes

TERM asks the process to exit cleanly before resorting to stronger signals.

Adjust nice value from the shell

Companion command when you prefer non-interactive changes.

bashANYreniceshell
bash
sudo renice -n -5 -p 12345
Notes

Negative nice values increase scheduling priority.

Tag processes for group actions

Mark multiple processes, then send one action to all of them.

textANYtagbulk-action
text
Space to tag, U to untag
Notes

Tagged processes can be killed together from the signal menu.

Inspection tools

Attach external tools or inspect files and locks for the selected process.

Trace system calls with strace

Attach strace to the selected process if installed.

textANYstracesyscalls
text
s
Notes

Shows a live view of system calls for the selected process.

List open files with lsof

Inspect file descriptors for the selected process.

textANYlsoffiles
text
l
Notes

Useful for sockets, logs, deleted files still held open, and lock files.

Display file locks

Inspect active file locks for the selected process.

textANYlocksdebugging
text
x
Notes

Helpful when debugging stuck jobs or lock contention.

Attach strace manually

Use the PID from htop with a direct shell command.

bashANYstraceshellpid
bash
sudo strace -p 12345
Notes

Helpful if you want to control strace flags more precisely than the in-app shortcut.

List files for a PID manually

Use lsof directly from the shell.

bashANYlsofshellpid
bash
sudo lsof -p 12345
Notes

Pairs well with htop when you need copyable terminal output.

Inspect CPU affinity from the shell

Complement htop when tracking placement or pinning.

bashANYaffinitytaskset
bash
taskset -pc 12345
Notes

Shows which CPU cores a process may run on.

Recommended next

No recommendations yet.