正在加载图片...
DAWNING 乡曙光 料技计算未来 The first bash program We must know how to use a text editor.There are two major text editors in Linux: -vi,emacs (or xemacs). So fire up a text editor;for example: -$vi& and type the following inside it: -#!/bin/bash echo "Hello World" The first line tells Linux to use the bash interpreter to run this script. We call it hello.sh.Then,make the script executable: -chmod 700 hello.sh -$1s-1 -rwx------hello.sh Shell编程 5 The first bash program • We must know how to use a text editor. There are two major text editors in Linux: – vi, emacs (or xemacs). • So fire up a text editor; for example: – $ vi & and type the following inside it: – #!/bin/bash echo “Hello World” • The first line tells Linux to use the bash interpreter to run this script. We call it hello.sh. Then, make the script executable: – $ chmod 700 hello.sh – $ ls –l -rwx------ hello.sh Shell 编程 5
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有