SHELL: MT Raw Magnetic Tape
$ for drive in 0 1 2 3 4 5 6 7 > do > mt -f /dev/rmt/$drive status > done
2013-05-17 1 min →
$ for drive in 0 1 2 3 4 5 6 7 > do > mt -f /dev/rmt/$drive status > done
fping -a -q -g 192.168.0.0/24
Grep will remove all comments and sed will remove all empty lines # grep -v "^#" /etc/squid/squid.conf | sed -e '/^$/d' Same with sed # cat /etc/squid/squid.conf | sed '/ *#/d; /^…
Cron: 30 23 * * 5 /root/backup_script backup_script #!/bin/bash FROM="/PROD/" FROMIP="192.168.142.146" TOIP="192.168.142.185" TO="/mirror" BLOG=$TO"/backup.log" function logmsg {…
alias command The alias command can be useful if you want to create a 'shortcut' to a command. The format is alias name='command' > alias home='cd /home/dave/public_html' This will…