|
META TOPICPARENT |
name="CourseExercises" |
Exercises 1: Discovering Linux
Goal: |
| Open a LibreOffice document and write down what you have done. Save this document under the name $HOME/exercises/doc/exercise_1.odt. Continue to document you work during this exercise such that at the end of the exercise session you have a document describing all your work.
Exercise 3: Environment variables and shell startup |
|
< < | Have a look at all environment variables defined (printenv). What are the values of HOME, PATH, LANGUAGE, LOG_NAME? |
> > | Have a look at all environment variables defined (printenv). What are the values of HOME, PATH, LANGUAGE, LOGNAME? |
|
To get the value of an environment variable print it (echo command) with a $ in front (e.g. echo $HOME). |
|
Now create a new environment variable MY_VARIABLE: |
|
< < | export MY_VARIABLE=It’s_Me\! and print it. Get rid of it using unset. |
> > | export MY_VARIABLE=It\’s_Me\! and print it. Get rid of it using unset. (You need the "\" to make sure bash does not interpret the characters following the \, you escape the interpretation) |
| Exercise 4: Redirection and pipes
To each executable 3 input output channels are associated: |