Difference between revisions of "Introduction to Linux in HPC/Linux in HPC"

From HPC Wiki
Introduction to Linux in HPC/Linux in HPC
Jump to navigation Jump to search
Line 105: Line 105:
  
 
{{hidden begin  
 
{{hidden begin  
|title = Which command you can use to do a secure copy from the Cluster to you local Linux machine?</br>
+
|title = 1. Which command you can use to do a secure copy from the Cluster to you local Linux machine?</br>
 
Hint:<code>man scp</code>
 
Hint:<code>man scp</code>
 
}}
 
}}
Line 117: Line 117:
 
{{hidden end}}
 
{{hidden end}}
  
 
+
{{hidden begin
 
+
|title = 2. Label the interface elements in the terminal:
 +
}}
 +
<quiz display=simple>
 +
{ [[Linux hpc quiz.png|frame|500px]]
 +
| type="()" }
 +
+ Herring
 +
||This is many Herring swimming in uniform formation in the Bearing Sea by the light of the silvery moon.  This swarm was photographed by the great artic explorer who fell overboard in 1887 with his camera and took this flash picture of the fish of the sea.
 +
- Salmon
 +
- Tunafish
 +
- Goldfish
 +
</quiz>
 +
{{hidden end}}
  
 
{{Warning|mode=info|text= '''no tips in this section'''}}
 
{{Warning|mode=info|text= '''no tips in this section'''}}

Revision as of 13:00, 2 October 2020

Video

Linux in HPC Slides 3 - 40 (38 pages)


Slide Layout

   page 3: 
       Shell scripts 
       Shell utilities 
       Combine multiple programs via pipeline. 
   page 4 - 5: 
       space is important 
       string comparison 
       integer comparison 
       other operators 
   page 6: 
       for-loop 
       while-loop 
   page 7: 
       grep 
       sed 
       awk 
   page 8 - 9: 
       command1 | command2 
       echo "scale=64; 355.0/113.0" | bc -l 
       Tips for pipeline 
   page 10 - 11: 
       mature grep 
       simpler grep 
   page 12: 
       create input files 
       run simulations 
       collect results 
   page 13: 
       step 1: prepare input template
   page 14: 
       step 2: replace placeholder using sed
   page 15: 
       step 3: loop thru all parameters
   page 16: 
       step 4: save input files
   page 17: 
       step 5: run simulations
   page 18: 
       identify useful data in output
   page 19: 
       small steps for writing a script
   page 20: 
       multiple solutions are possible
   page 21: 
       filename for output
   page 22:
       get boxsize
   page 23: 
       init variables
   page 24:
       accumulate avgT and count numT
   page 25: 
       calculate avgT
   page 26: 
       print the results (explain printf and format)
   page 27: 
       execute report.sh
   page 28: 
       three parts in awk script
   page 29: 
       init variables
   page 30: 
       get boxsize
   page 31: 
       accumulate avgT and increment numT
   page 32: 
       print the results
   page 33:
       execute report.awk
   page 34: 
       How to summarize the final results?
   page 35:
       step 1: find and sort
   page 36: 
       step 2: loop the list of output
   page 37: 
       step 3: use either report.sh or report.awk
   page 38: 
       show final report
   page 39: 
       Environment modules for HPC users 
       module cmd 
   page 40: 
       Recommendations



Quiz

1. Which command you can use to do a secure copy from the Cluster to you local Linux machine?
Hint:man scp

Click and submit to see the answer

2. Label the interface elements in the terminal:

Herring
Salmon
Tunafish
Goldfish


Info:  no tips in this section


Warning:  no warnings in this section

Exercises in Terminal (slides 115 - 116) and solution (slide 117)