A shell variable may be assigned to by a statement using following syntax: var=value If value is not given, the variable is assigned the null string. In shell program it is quite useful to provide default value for variables. For example consider rsync.sh script: #!/bin/bash RSRC=$1 LOCAL=$2 rsync -avz -e ‘ssh ‘ user@myserver:$RSRC $LOCAL This [...]
How do you install and use rsync to synchronize files and directories from one location (or one server) to another location? – A common question asked by new sys admin.
This is Part II in a series on Execute Commands on Multiple Linux or UNIX Servers Simultaneously. The full series is Part I, Part II, and Part III. Many times, you want to execute a command not only on one server, but also on several servers. For example, find out Version of kernel Version of [...]