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

From HPC Wiki
Introduction to Linux in HPC/Various tips
Jump to navigation Jump to search
Line 78: Line 78:
 
         CPU(s):                40
 
         CPU(s):                40
 
         On-line CPU(s) list:  0-39
 
         On-line CPU(s) list:  0-39
       </syntaxhighlight lang="bash">
+
       </syntaxhighlight>
 
       Brief description:
 
       Brief description:
 
             <code>CPU(s):                40</code>: this computer contains 40 CPU cores.
 
             <code>CPU(s):                40</code>: this computer contains 40 CPU cores.

Revision as of 12:12, 2 October 2020

Video

Linux Introduction Slides 130 - 136 (7 pages)


Slide Layout

   page 1: 
       Please make backups regularly!
   page 2: 
       du command
       df command
   page 3: 
       history command
       the ~/.bash_history file
   page 4: 
       ln command and syntax
   page 5: 
       watch command and the usage
   page 6: 
       $(( )) as integer calculator
   page 7: 60 sec
       very brief into to sed
       just mention awk


Quiz

How will you find a specific command in history ? HINT: use grep with history, how to use it?

Click and submit to see the answer

How can you compare two files and display a list of the difference? HINT: man diff

Click and submit to see the answer


Info:  Please make backups regularly!


Warning:  Please make backups regularly!


Exercises in Terminal (slide 137)

1. Find out the number of CPUs and amount of memory you have.
2. Permanently change your vim color scheme.