lscpu: lscpu gathers CPU architecture information like number of CPUs, threads, cores, sockets, NUMA nodes, information about CPU caches, CPU family, model, bogoMIPS, byte order and stepping from sysfs and /proc/cpuinfo, and prints it in a human-read?able format.
Cmd to know system endianness:
1. file a.out
2. lscpu | grep -i byte
3.readelf -h libname //command to check particular library info