I usually need to scp stuff from/over-to servers on a regular basis. And here is a function in .bashrc that I use: #function to get the scp path to here function scp2here { user=`whoami` server=`hostname` pathToHere=`pwd` output=$user"@"$server":"$pathToHere if [ ! -z "$1" ] then output=$output"/"$1 fi echo $output } This function prints out the scp [...]
↧