Difference between revisions of "Introduction to Linux in HPC/System configuration files"

From HPC Wiki
Introduction to Linux in HPC/System configuration files
Jump to navigation Jump to search
(Created page with "__TOC__ === Video === <!--T:5--> <youtube width="600" height="400" right>IfD9IPixgpo</youtube> [https://git-ce.rwth-aachen.de/hpc.nrw/ap2/tutorials/linux/-/blob/master/Slid...")
 
Line 72: Line 72:
 
{{Warning|mode=info|text= '''no tips in this section'''}}
 
{{Warning|mode=info|text= '''no tips in this section'''}}
  
{{Warning|mode=warn|text= '''no warnings in this section'''}}
+
{{Warning|mode=warn|text= ''' Be very careful, when editing configuration files. A faulty configuration file may prevent a user from login to computer'''}}
  
  
  
 
{{Note|'''Exercises in Terminal: no exercises in this section'''}}
 
{{Note|'''Exercises in Terminal: no exercises in this section'''}}

Revision as of 10:56, 2 October 2020

Video

Linux Introduction Slides 119 - 128 (10 pages)


Slide Layout

   page 1: 
       Special files in /proc, e.g. /proc/cpuinfo and /proc/meminfo
       display with cat
       cannot be edited
   page 2: 
       environment variable PATH
       Directories are separated by :
       First command found will be used.
       PYTHONPATH
   page 3: 
       environment modules for cluster
       It becomes easier to switch environment.
   page 4: 
       environment modules: definition file for each module
       Example: load OpenMPI module
   page 5: 
       Three things for environment modules:
           description
           prepend to path and other variables
           set new variables
   page 6: 
       Alias for long command.
       How to define alias.
       Examples: alias ll='ls -l'
   page 7: 
       Environment variables and aliases settings in console are temporary.
       To make them permanent: write settings into configuration file.
   page 8: 
       Other configuration files, e.g. ~/.vimrc
       Breaking .bashrc can make it impossible to login.
       source <filename> to apply changes.
   page 9: 
       What is locale?
       the locale command
   page 10: 
       Example output of locale


Quiz

In which system file could you find the CPU information of a Linux computer?

/dev/cpuinfo
/sys/cpuinfo
/proc/cpuinfo


Info:  no tips in this section


Warning:  Be very careful, when editing configuration files. A faulty configuration file may prevent a user from login to computer


Note: Exercises in Terminal: no exercises in this section