Difference between revisions of "Introduction to Linux in HPC/Linux Directory Structure"
Introduction to Linux in HPC/Linux Directory Structure
Jump to navigation
Jump to search
m |
m |
||
Line 10: | Line 10: | ||
<youtube width="600" height="340" right>rV7Hwi__zZo</youtube> | <youtube width="600" height="340" right>rV7Hwi__zZo</youtube> | ||
− | ([[Media:HPC.NRW_Introduction_to_Linux_in_HPC_03_Linux_Directory_Structure.pdf | Slides as pdf]]) | + | ([[Media:HPC.NRW_Introduction_to_Linux_in_HPC_03_Linux_Directory_Structure.pdf|Slides as pdf]]) |
=== Quiz === <!--T:5--> | === Quiz === <!--T:5--> | ||
Line 31: | Line 31: | ||
{{hidden begin | {{hidden begin | ||
− | |title = 2. The command <code>cd</code> without arguments : if you start in <code>/var/log/</code> and run <code>cd</code> with no arguments, what do you expect will happen? | + | |title = 2. The command <code>cd</code> without arguments: if you start in <code>/var/log/</code> and run <code>cd</code> with no arguments, what do you expect will happen? |
}} | }} | ||
<quiz display=simple> | <quiz display=simple> | ||
Line 65: | Line 65: | ||
<code>cd ~</code> | <code>cd ~</code> | ||
<code>cd $HOME</code> | <code>cd $HOME</code> | ||
− | the last option $HOME is an | + | the last option $HOME is an environment variable. You will learn about environment variables later. |
|} | |} | ||
Revision as of 14:23, 26 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 tutorial introduces the directory structure on a Linux system and shows how to navigate in it. It explains how a path looks like in Linux, which standard directory structure is shared by most systems and how to navigate from one directory to another.
Video
Quiz
Collapse
2. The command
cd
without arguments: if you start in /var/log/
and run cd
with no arguments, what do you expect will happen?
Warning: | no undo and make sure what you want to do (page 48) |
Exercises in Terminal (slide 49)
1. Go to a specific subfolder of a folder (example:cd Documents/courses/
) and get back to the home directory usingcd
command. List 3 different ways to do it using one command. check after every action your path withpwd
command.
ExpandAnswer: |
2. Go to the directory/tmp
and jump between/tmp
and your home directory back and forth. check after every action your path withpwd
command.
ExpandAnswer: |