linux - How do I get the # of logical CPUs in zsh or bash? -


How do I get logical CPU # in zsh or bash? I want to make a make-up nickname that passes the CPU to #make-jay. Linux for:

  grep -c proc / proc / Cpuinfo   

Shell does not matter. It will work in any

Comments