Wiki‎ > ‎

Check Linux distro version, LSB, and diagnose binary file

posted Jul 28, 2016, 11:03 AM by Dong Xu   [ updated Aug 2, 2016, 4:50 PM ]
Count number of CPUs

grep -c ^processor /proc/cpuinfo   

mpstat -P ALL|head -1|cut -d'(' -f3|cut -d')' -f1


Distro version (this will also show LSB version):

lsb_release -a

Kernel version

uname -a

Diagnose binary file's library needs:

readelf -a ./binaryfile |grep quest  #see what libs are missing for this file

ldd ./binaryfile

Comments