Tag Archives: wc

How to get number of cores on your Linux Box

cat /proc/cpuinfo | grep “model name” | wc -l example output: 24 This means that you have 24 cores on your server.

Posted in Linux | Tagged , , , , , , , | Leave a comment

Count number of lines in a text file

wc -l file_name

Tagged , | Leave a comment