Home › coding › linux › linux files directories

Linux Files Directories — Free Linux Tutorial

Learn Linux Files Directories in Linux with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

✓ 100% Free ✓ No Login Needed ✓ NCERT / CBSE Aligned ✓ Download as PDF

TL;DR: Learn Linux Files Directories in Linux with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated Jul 12, 2026

🤖 Stuck on any question? Ask Syllab's free AI Tutor for a step-by-step explanation — instant, unlimited, no login.

Linux Files Directories in Linux

Creating and managing files/folders is fundamental. mkdir creates directories, touch creates empty files (or updates timestamps), cp copies files/folders, mv moves/renames them, and rm deletes them. The -r flag (recursive) is needed when operating on directories. Be careful with rm—it does not use a trash bin; deleted files are gone permanently.

Efficient file organization saves time. Create project directories with mkdir -p path/to/nested/folder to create all parent directories. Use mv to rename: mv oldname.txt newname.txt. Copy with cp source dest. To remove a directory and all contents, use rm -rf (use carefully!). Always double-check rm commands before pressing Enter.

Learn Linux Files Directories step by step with Syllab's free interactive Linux tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full Linux course →

Explore:

  • Syllabus
  • Practice
  • Mock Tests
  • NCERT Solutions
  • Coding
  • GK Quiz
  • Career Predictor
  • AI Tutor
  • Live Quiz
  • Doubt Solver
  • Microlearning
  • Free Alternatives
  • Kids Zone
  • Study Room
  • Calculators
  • Worksheets

Syllab.in — Free learning for Indian students, Class 1–12