ncpus(1)

ncpus1

Print the number of virtual cpus

Usage

ncpus [{+n | n | -n}]

Overview

ncpus prints the number of virtual CPUs to standard output. With the +n argument, it prints the number of processors +n; with the -n argument, it prints the number of processors -n (if the result is less than 1, ncpus prints 1). With the n argument, ncpus prints n. ncpus ignores malformed argument.

This program is a part of the Middleman System (mdm).

Exit status

The exit status of ncpus is 0.

Releases

Unchanged in 8 releases since Debian 6.0 (Squeeze).

  1. 6.0–13

From mdm 0.1.3-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.