nsbin/notebook-stats

22 lines
306 B
Text
Raw Normal View History

#!/bin/sh
exec 2>&1
2019-10-13 14:01:49 +00:00
if [ $# -ge 1 ]; then
2019-12-08 18:28:42 +00:00
printf 'Estimated location\n\n'
echo "$@"
printf '\n\n'
2019-10-13 14:01:49 +00:00
fi
printf 'My IP addresses\n\n'
ip -o a | awk '{ print $4 }'
printf '\nLocal time\n'
date
printf '\nPing6 output\n'
ping -6 -c3 ungleich.ch
printf '\nPing4 output\n'
ping -4 -c3 ungleich.ch