$strace -e write python dig.py write(1, "\33[31mI think lscpu command is us"..., 69I think lscpu command is using proc filesystem to get data. ) = 69 write(1, "\33[31m/* /sys paths */\33[0m\n", 26/* /sys paths */ ) = 26 write(1, "\33[31m#define _PATH_SYS_SYSTEM "..., 63#define _PATH_SYS_SYSTEM "/sys/devices/system" ) = 63 write(1, "\33[31m#define _PATH_SYS_CPU "..., 65#define _PATH_SYS_CPU _PATH_SYS_SYSTEM "/cpu" ) = 65 write(1, "\33[31m#define _PATH_SYS_NODE "..., 66#define _PATH_SYS_NODE _PATH_SYS_SYSTEM "/node" ) = 66 write(1, "\33[31m#define _PATH_PROC_XEN "..., 53#define _PATH_PROC_XEN "/proc/xen" ) = 53 write(1, "\33[31m#define _PATH_PROC_XENCAP "..., 72#define _PATH_PROC_XENCAP _PATH_PROC_XEN "/capabilities" ) = 72 write(1, "\33[31m#define _PATH_PROC_CPUINFO "..., 57#define _PATH_PROC_CPUINFO "/proc/cpuinfo" ) = 57 write(1, "\33[31m#define _PATH_PROC_PCIDEVS "..., 65#define _PATH_PROC_PCIDEVS "/proc/bus/pci/devices" ) = 65 write(1, "\33[31m#define _PATH_PROC_SYSINFO "..., 57#define _PATH_PROC_SYSINFO "/proc/sysinfo" ) = 57 write(1, "\33[31m#define _PATH_PROC_STATUS "..., 61#define _PATH_PROC_STATUS "/proc/self/status" ) = 61 write(1, "\33[31m#define _PATH_PROC_VZ \"/p"..., 44#define _PATH_PROC_VZ "/proc/vz" ) = 44 write(1, "\33[31m#define _PATH_PROC_BC \"/p"..., 44#define _PATH_PROC_BC "/proc/bc" ) = 44 write(1, "\33[31m#define _PATH_PROC_DEVICETR"..., 61#define _PATH_PROC_DEVICETREE "/proc/device-tree" ) = 61 write(1, "\33[31m#define _PATH_DEV_MEM "..., 52#define _PATH_DEV_MEM "/dev/mem" ) = 52 write(1, "\33[31m\33[0m\n", 10 ) = 10 write(1, "Number of commands found is : 0"..., 33Number of commands found is : 0 ) = 33 +++ exited with 0 +++ $