资讯

If you administer multiple Linux servers, Jack Wallen has an easy script you can use to run commands on all of those servers at once.
When you run commands on Linux, be they one at a time at the prompt or from a bash script, those commands run in sequence. The first command runs, followed by the second, followed by the third.
The steps described above are manifest in the following six commands: $ mkdir scripts $ cd scripts $ touch script.sh $ echo 'echo hello-world' >> script.sh $ chmod -R 777 . $ ./script.sh hello-world ...