nproc命令

NAME
       nproc - print the number of processing units available

SYNOPSIS
       nproc [OPTION]...

DESCRIPTION
       Print  the number of processing units available to the current process,
       which may be less than the number of online processors

       --all  print the number of installed processors

       --ignore=N
              if possible, exclude N processing units

       --help display this help and exit

       --version
              output version information and exit
e.g:make -j$(nproc) It can speed up compilation

 



posted on 2023-04-24 11:34  dingyun  阅读(25)  评论(0编辑  收藏  举报

导航