|
|
Question : Problem: How to enter alt key codes in a Linux BASH shell
|
|
I'm using ssh in a rsync script. I'm trying to transfer files from a folder name which has spaces in the name:
rsync -avz -e "ssh -i local-rsync-key / backup@:/datafiles/folder name with space/*"
SSH is having trouble understanding the spaces. I want to use an alt-key-combination such as ALT-0255 on the keypad to enter a space, but I can't quite figure out how to do that in the BASH shell in linux.
|
Answer : Problem: How to enter alt key codes in a Linux BASH shell
|
|
rsync -avz -e "ssh -i local-rsync-key / backup@:'/datafiles/folder name with space/\*'"
# not sure if you need the \ infronmt of *, it may depend of on your OS and/or shell on the remote system. You better get rid of spaces in file and directory names ...
|
|
|