Linux Tutorial

Shell and Filesystem Basics

Learn paths, pwd, ls, cd, mkdir, cp, mv, rm and safe filesystem navigation.

Concept

Linux organizes files in a single directory tree rooted at /. Absolute paths start from /, while relative paths are interpreted from the current working directory.

Learn destructive commands carefully. Before rm or recursive operations, verify the current path and target with pwd and ls.

Example

pwd
ls -la
mkdir -p ~/practice/linux
cd ~/practice/linux
touch notes.txt
ls -l
Type the example yourself and change at least one value. Small experiments reveal syntax and behavior faster than passive reading.

Practice Tasks

  1. Create a nested practice directory.
  2. Copy and rename a text file.
  3. Use ls options to display hidden files and details.

Key Takeaways

  • Paths can be absolute or relative.
  • The shell operates on the current working directory.
  • Double-check destructive commands.