Difference between revisions of "Introduction to Linux in HPC/Shell scripting"
Introduction to Linux in HPC/Shell scripting
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
| Feldname15= 11. | Daten16 = [https://hpc-wiki.info/hpc/Introduction_to_Linux_in_HPC/Beyond_the_cluster Beyond the cluster] | | Feldname15= 11. | Daten16 = [https://hpc-wiki.info/hpc/Introduction_to_Linux_in_HPC/Beyond_the_cluster Beyond the cluster] | ||
| Feldname16= 12. | Daten17 = [https://hpc-wiki.info/hpc/Introduction_to_Linux_in_HPC/Linux_in_HPC Linux in HPC] | | Feldname16= 12. | Daten17 = [https://hpc-wiki.info/hpc/Introduction_to_Linux_in_HPC/Linux_in_HPC Linux in HPC] | ||
− | | Feldname17= | + | | Feldname17= 13. | Daten18 = [https://hpc-wiki.info/hpc/Introduction_to_Linux_in_HPC/SSH_Login SSH Login] |
}} | }} | ||
Revision as of 18:42, 21 October 2020
HPC.NRW | |
---|---|
Other HPC Courses | |
GPU | Introduction to GPU Programming |
GPROF | Gprof Tutorial |
Introduction to Linux in HPC | |
1. | Historical Background |
2. | The Command Line |
3. | Directory structure |
4. | Files |
5. | Text display search |
6. | Processes and permissions |
7. | The vim text editor |
8. | Shell scripting environment variables |
9. | System configuration files |
10. | Various tips |
11. | Beyond the cluster |
12. | Linux in HPC |
13. | SSH Login
|
Video
Quiz
Exercises in Terminal (slides 115 - 116) and solution (slide 117)
1. a. Write a script that b. Prints an environment variable c. Saves the output of the date command to a variable d. Sleeps briefly e. Prints the new and old date and time
ExpandAnswer: |
2. Find a way to execute a script without setting execute permissions.
ExpandAnswer: |
3. Find out how to do other programming things in bash
(e.g. functions, classes). How convenient do they look?
ExpandAnswer: |
4. Look at different ways you can define if
conditions.
ExpandAnswer: |
5. Find out what different types of quotes (single'
vs. double"
) do?
ExpandAnswer: |
6. create an shell variable MYIDENTITY and export it as below:
$ export MYIDENTITY=whoami
How will you list the shell variable MYIDENTITY?
Execute the shell variable MYIDENTITY, what is the output?
ExpandAnswer: |