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
Line 90: | Line 90: | ||
2. Go to the directory <code>/tmp</code> and jump between <code>/tmp</code> and your home directory back and forth. check after every action your path with <code>pwd</code> command. | 2. Go to the directory <code>/tmp</code> and jump between <code>/tmp</code> and your home directory back and forth. check after every action your path with <code>pwd</code> command. | ||
− | {| role="presentation" class="wikitable mw-collapsible mw-collapsed" | + | {| role="presentation" class="wikitable mw-collapsible mw-collapsed" |
| <strong>Answer:</strong> | | <strong>Answer:</strong> | ||
|- | |- |
Revision as of 13:29, 2 October 2020
Video
Linux Introduction Slides 33 - 48 (16 pages)
Slide Layout
page 1: Windows: drive letter + backslash (C:) Linux: standard tree directory structure Absolute path: starts with / Relative path: w.r.t. working directory page 2 - 11: Animation for directory structure example directories page 12: everything is a file: /dev and /proc program/script can be found with which special directories: ., .. and ~ page 13: cd command page 14: 40 sec ls command page 15: specific commands: Ctrl+key (C, Z, D), exit and clear page 16: no undo make sure what you want to do
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?
Info: | no tips in this section |
Warning: | no undo and make sure what you want to do (page 16) |
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: |