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 114: Line 114:
 
       Your personal vim configuration file is ~/.vimrc. In this file you can change the vim color scheme permanently. For example, the following setting uses the desert color scheme:
 
       Your personal vim configuration file is ~/.vimrc. In this file you can change the vim color scheme permanently. For example, the following setting uses the desert color scheme:
 
       <code>colorscheme desert</code>
 
       <code>colorscheme desert</code>
       But beware of this permanent change of vim color scheme, because different color schemes may be preferred by different people. The vim color scheme recommended by others may not the best choice for you.
+
       But beware of this permanent change of vim color scheme, because different color schemes may be preferred by different people. The vim color scheme recommended by others may not be the best choice for you.
 
     |}
 
     |}

Revision as of 12:13, 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.