How to copy symbolic links as real files when using rsync
Answer:
Use the -L or --copy-links option, e.g.
rsync -avuz --copy-links -e ssh /home/john 192.168.1.5:/data/backup/
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to copy symbolic links as real files when using rsync
Answer:
Use the -L or --copy-links option, e.g.
rsync -avuz --copy-links -e ssh /home/john 192.168.1.5:/data/backup/
Move forward or backward by a word in bash shell
Answer:
To move more efficiently in bash shell, you can use the following short cuts
Meta + f (move forward by a word)
Meta + b (move backward by a word)
The Meta key is the Alt key under most systems, on Mac, you would need to enable "use option as meta key" in the Terminal's Preference.
How to copy symbolic links using scp
Answer:
The answer is no, you can't.
You need to use other alternative like rsync.
How to echo single quote in bash shell
Answer:
To echo single quote (using single quote only), you can try
# echo foo
foo
# echo \'''foo
'foo
How to provide username and password when using curl?
Answer:
To provide username and password when curl a url, you should use the "-u" or "--user" argument
e.g.
# curl --user john:password http://www.example.com