function sshtmuxattach {
if [[ $# -ne 2 || -z “$1” || -z “$2” ]] ; then
printf “Usage: ${FUNCNAME[0]}
printf “SSH into HOST and attach to Tmux SESSION.\n”
return 1
fi
local host=$1;
local session=$2
ssh “$host” -t tmux attach -t “$session”
}
Tag: System Administration
You Are Using rsync Incorrectly And You Will Lose Everything Unless You Read This Now!
rsync is generous in its functionality and flexible in how you use it. The only bad things it can do are what you tell it. The most important thing that you need to know immediately about rsync
is that you can get a preview of what you are telling it to do before it actually does it. Here is how