Files
php-uuid/resources/scripts/system-info.sh
T
2019-11-30 20:45:00 -08:00

18 lines
290 B
Bash
Executable File

#!/bin/bash
endianness=$(echo -n I | od -to2 | awk '{ print substr($2,6,1); exit}')
endian="Big"
if [ $endianness -eq 1 ]; then
endian="Little"
fi
echo
echo "SYSTEM INFORMATION:"
echo
echo "$(uname -a)"
echo
echo "CPU mode: $(getconf LONG_BIT)-bit"
echo "Endianness: ${endian}"
echo