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 13: Line 13:
  
 
=== Quiz === <!--T:5-->   
 
=== Quiz === <!--T:5-->   
 +
 +
{{hidden begin
 +
|title = 1. In which system file could you find the CPU information of a Linux computer?
 +
}}
 +
<quiz display=simple>
 +
{
 +
|type="()"}
 +
-  <code>/dev/cpuinfo</code>
 +
||
 +
-  <code>/sys/cpuinfo</code>
 +
||
 +
+  <code>/proc/cpuinfo</code>
 +
|| Explanation: The <code>/dev</code> directory contains special files that represent devices, e.g. hard drive. None of them, however, gives the CPU information. The <code>/sys</code> directory is a virtual file system that stores the device information on a Linux system. However, the <code>/sys/cpuinfo</code> does not exist at all. The <code>/proc</code> directory is also a virtual file system that contains information about running process on a Linux system. From the file <code>/proc/cpuinfo</code> you can obtain the CPU information.
 +
</quiz>
 +
{{hidden end}}
  
  
 
{{hidden begin  
 
{{hidden begin  
|title = In which system file could you find the CPU information of a Linux computer?
+
|title = 2. In which system file could you find the CPU information of a Linux computer?
 
}}
 
}}
 
<quiz display=simple>
 
<quiz display=simple>

Revision as of 16:22, 27 November 2020

Tutorial
Title: Introduction to Linux in HPC
Provider: HPC.NRW

Contact: tutorials@hpc.nrw
Type: Multi-part video
Topic Area: HPC Platforms
License: CC-BY-SA
Syllabus

1. Background and History
2. The Command Line
3. Linux Directory Structure
4. Files
5. Text display and search
6. Users and permissions
7. Processes
8. The vim text editor
9. Shell scripting
10. Environment variables
11. System configuration
12. SSH Connections
13. SSH: Graphics and File Transfer
14. Various tips

This part of the Linux tutorial shows possibilies of system configuration a normal user can do without having route access. Typical aspects in this context like reading system information files, defining aliases, adjusting configuration files and changing locales are taught in this lecture.

Video

( Slides as pdf)

Quiz

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

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


2. 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


Note: Exercises in Terminal: no exercises in this section


<< Environment Variables

Overview

SSH Connections >>