What would the equivalent of Debian's nproc be in FreeBSD? I'm trying to include this in a bash script variable so if it could just print out the number of cores that would be fantastic.
Originally asked by Dominique on Stack Exchange (unix) (CC BY-SA 3.0).