nsbin/notebook-stats
Nico Schottelius b6aa33509c various updates
2019-12-08 19:28:42 +01:00

21 lines
306 B
Bash
Executable file

#!/bin/sh
exec 2>&1
if [ $# -ge 1 ]; then
printf 'Estimated location\n\n'
echo "$@"
printf '\n\n'
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