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
Line 4: Line 4:
  
 
<youtube width="600" height="400" right>IfD9IPixgpo</youtube>
 
<youtube width="600" height="400" right>IfD9IPixgpo</youtube>
 
[https://git-ce.rwth-aachen.de/hpc.nrw/ap2/tutorials/linux/-/blob/master/Slides/Linux_Intro/Linux_Intro.pdf Linux Introduction]  Slides 119 - 128 (10 pages)
 
 
 
=== Slide Layout === <!--T:5-->
 
 
 
 
    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
 
  
  
Line 69: Line 25:
 
{{hidden end}}
 
{{hidden end}}
  
 
{{Warning|mode=info|text= '''no tips 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'''}}
 
{{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'''}}
 

Revision as of 11:39, 5 October 2020

Video


Quiz

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

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


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