[Linux][Bash]how to export the commands in sbin to PATH variable


Error – ifconfig command is not found !!! lsmod command is not found !!! insmod command is not found !!! list sbin directory content ( ls /sbin). ifconfig will be there . Solution – export PATH=$PATH:/sbin Now try the commands (ifconfig , lsmod or insmod)  …. 🙂 Permanent fix – Add the line export PATH=$PATH:/sbin into .bashrc file in yourContinue reading “[Linux][Bash]how to export the commands in sbin to PATH variable”

[Linux]How to know compiler info from the binary executable


There are two methods . Both will give the same result objdump -s –section .comment binary Using readelf command readelf -S binary      -> which will display the 40 section headers  in the binary . Note the serial number of  .comment   section header. In my system , it showed as  27 (may be different forContinue reading “[Linux]How to know compiler info from the binary executable”