Number of processors/cores in command line December 28, 2022 by Tarik nproc is what you are looking for. More here : http://www.cyberciti.biz/faq/linux-get-number-of-cpus-core-command/