taskset

Set CPU affinity

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Bind processes to CPUs. See the flags and examples below, and run `man taskset` for the full reference.

Examples
taskset -cp 0-3 1234Pin PID to CPUs 0-3 · explain & risk-check →
Related
nice
Open the full explainer →More in System & Processes

Reference text is hand-written and may be incomplete — check man taskset for your version. Test destructive commands on a non-production system first.