---
name: "ptaskset2"
section: "1"
platform: "linux"
package: "python-schedutils"
version: "0.6-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/ptaskset2"
---

# ptaskset2(1)

set or get the affinity of a process (python-schedutils)

## NAME

**ptaskset - set or get the affinity of a process (python-schedutils)**

## SYNOPSIS

ptaskset \[options\] \[mask \| cpu-list\] \[pid \| cmd \[args...\]\]

## OPTIONS

- **-p, --pid**

  operate on existing given pid

- **-c, --cpu-list**

  display and specify cpus in list format

- **-h, --help**

  display help

## SEE ALSO

[**taskset**(1)](/taskset/1.md)

## AUTHOR

ptaskset was written by Arnaldo Carvalho de Melo \<acme@redhat.com\>\
 as part of python-schedutils

This manual page was written by John Kacur \<jkacur@redhat.com\>

Report bugs and send patches to \<tuna-devel@lists.fedorahosted.org\>
