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
Increase priority
F7 or ]

# Lower the nice value of the selected process.

Decrease priority
F8 or [

# Raise the nice value of the selected process.

Send a signal to a process
F9 or k

# Open the kill menu for the selected or tagged processes.

Use htop to locate a PID, then kill from shell
kill -TERM 12345

# Classic shell companion flow.

Adjust nice value from the shell
sudo renice -n -5 -p 12345

# Companion command when you prefer non-interactive changes.

Tag processes for group actions
Space to tag, U to untag

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

## Inspection tools
Trace system calls with strace
s

# Attach strace to the selected process if installed.

List open files with lsof
l

# Inspect file descriptors for the selected process.

Display file locks
x

# Inspect active file locks for the selected process.

Attach strace manually
sudo strace -p 12345

# Use the PID from htop with a direct shell command.

List files for a PID manually
sudo lsof -p 12345

# Use lsof directly from the shell.

Inspect CPU affinity from the shell
taskset -pc 12345

# Complement htop when tracking placement or pinning.

Recommended next

No recommendations yet.