Tag: alias
-
ZFS Snapshot alias
Add this to your .bash_aliases for fun and profit: function Snapshot () { local dst=”” local atnam=”” if [ -z “$1″ ]; then dst=`df -l . | tail -1 |awk ‘{print $1}’` else if [[ $1 = *@* ]]; then atnam=”${1##*@}” dst=”${1%%@*}” fi dst=`df -l “$dst” | tail -1 |awk ‘{print $1}’` fi [ -z…
-
Using Command Line Aliases – Frequently | Freedom Penguin
I’ve been using command-line aliases since I was in college (a long time ago). Here’s a list of some of my favourite aliases.