Bash One Liners

From Superk

Jump to: navigation, search

Copying from one system to another over the network using tar and ssh:

tar -c /local/path | ssh -C root@remote.box "cd /remote/path; tar -x"

Copying from one system to another over the network using rsync and ssh:

rsync -avz /local/path root@remote.box:/remote/path
Personal tools