Scripting repetitive tasks improves the efficiency of system administration. That’s great for local machines, but what if you oversee remote servers? Can you run a local script on a remote computer? Yes!
Remote system administration usually involves making a connection to the remote computer over a secure shell connection. The SSH connection provides you with a command prompt on the remote computer. You can then go right ahead and perform whatever system maintenance is required.
Shell scripting helps by letting you wrap a sequence of commands into a script that can be run as though they were a program, combining many actions into one command line instruction.
The link for this article located at How-To Geek is no longer available.