
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
Comentários a estes Manuais