Shell
Basic Commands
All commands and operations relate to the files in the current working directory (cwd). By changing the current working directory we navigate through the file tree structure:
- pwd: print working dir
- cd <path>: change working dir relative to the cwd
- ls: list working directory
Paths:
- The . is equivalent to the cwd.
- The .. is equivalent to the directory level above the cwd.
- cd ..: move up one level in the directory structure.
- the / is the root of the file system.
- without a leading slash all paths and files are treated to be relative to the cwd.
- with a leading slash the file path is specified absolute referring to the root / of the file system.
- the home directory of a user (where he has read and write permissions) is denoted by
~
(or$HOME
).
← Intro | ● | More Commands →