Contents
- basic-commands
- moving-files
- creating-files
- directory-hierarchy
- command-path
- environment-variables
- command-help
- redirects
- super-user
Roadmap info from roadmap website
Navigation Basics
In Linux, navigation between directories and files is a fundamental, yet essential function that allows you to exploit the power of the command-line interface (CLI). Mastering the basic Linux navigation commands such as cd
, pwd
, ls
, and tree
enables you to flawlessly move from one point to another within the filesystem, display the list of files & directories, and understand your position relative to other system components. These commands are advantageous not just to system administrators but to anyone interacting with Linux environments, hence familiarizing yourself with them is a critical step in building Linux proficiency.
Here is how you use these commands:
-
To change directories, use the
cd
command:
cd /path/to/directory
-
To print the current directory, use the
pwd
command:
pwd
-
To list the contents of a directory, use the
ls
command:
ls
-
The
tree
command displays directories as trees (system hierarchy):
tree