Files
php-uuid/resources/scripts/system-info.sh
T
2019-12-03 17:51:09 -08:00

20 lines
313 B
Bash
Executable File

#!/bin/sh
endianness=$(printf I | hexdump -o | awk '{ print substr($2,6,1); exit}')
endian="Big"
if [ "${endianness}" = "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
php --version
echo