Red Hat ENTERPRISE LINUX WS 2.1 - Guida di Installazione Pagina 224

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 223
224 Important Linux features
DONE
INDEX
INDEX
this line can be defined in your file .bashrc
Open a new shell and type data to execute the function.
3. use copy and paste
mark text by holding the left mouse button down
paste this text somewhere by clicking the middle mouse button
4. use the Linux shells bash or tcsh
use the arrow keys up/down to repeat and/or modify previously entered
commands
use the Tab key to complete commands and paths
5. use a Linux shell script
They are described in the next chapter 13.4.2.
13.4.2 Linux shell scripts
A shell script executes (a series of) Linux commands:
is an executable text file
can contain a series of Linux commands
can contain control loops and variables
example
1. scripta displays the date, current directory and contents:
edit a file scripta and enter:
date
pwd
ls
make scripta executable: chmod a+x scripta
execute the script by typing ./scripta
1
Vedere la pagina 223
1 2 ... 219 220 221 222 223 224 225 226 227 228 229 ... 271 272

Commenti su questo manuale

Nessun commento