$ cat .bash_aliases
alias pt='perltidy -i=2 -utf8 -b '
alias cx='chmod +x '
alias bounce='sudo service network-manager restart '
alias shh="nmcli networking off"
alias wake="nmcli networking on"
$ shh
$ wake
$ shh
$ wake
$
####
#!/bin/bash
timename=$(date +"%m-%d-%Y_%H-%M-%S")
_out_fn=$timename.txt
echo "Time is $timename " >> $_out_fn
nmcli network off >> $_out_fn
nmcli network on >> $_out_fn
env | sort >> $_out_fn
sleep 40s
echo ---journal control--- >> $_out_fn
journalctl --since "1 minute ago" >> $_out_fn
exit
#*******************end**************************
##
##
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"