Skip to main content

ETC Linux

Linux, Et Cetera

cat > $HOME/.doBASH.sh << EOF
#!/bin/bash
# REV02: Tue 27 Jun 2023 15:00
# START: Fri 16 Jun 2023 16:00
# .doBASH.sh

readlink -- /bin/sh
[[ "$(readlink -- /bin/sh)" == "/bin/bash" ]] || { /bin/rm -f /bin/sh; ln -s /bin/bash /bin/sh; }
readlink -- /bin/sh
exit
EOF
### #####
cat > $HOME/.doDNS.sh << EOF
#!/bin/bash
# REV02: Tue 27 Jun 2023 16:00
# START: Fri 16 Jun 2023 16:00
# .doDNS.sh

cat > /etc/resolv.conf <<< "nameserver 8.8.8.8"
exit
EOF
cat > $HOME/.doZERO.sh << EOF
#!/bin/bash
# REV02: Tue 27 Jun 2023 16:00
# START: Fri 16 Jun 2023 16:00
# .doZERO.sh

df -h /
dd if=/dev/zero of=/tmp/tmptmp bs=1M
df -h /
echo "==="
rm -f /tmp/tmptmp
df -h
sync
exit
EOF
### #####
Path: docs/debian-guest/etc-linux