File System Navigation | Cyber Security Tutorial - Learn with VOKS
Advance AI Bootstrap C C++ Computer Vision Content Writing CSS Cyber Security Data Analysis Deep Learning Email Marketing Excel Figma HTML Java Script Machine Learning MySQLi Node JS PHP Power Bi Python Python for AI Python for Analysis React React Native SEO SMM SQL
Back Next

File System Navigation

Learn this topic step-by-step with VOKS Tutorials.

What Is a File System?

A file system is how your operating system:

  • Stores files
  • Organizes folders
  • Keeps track of locations on disk

Think of it like a tree structure.

Example:

Root
 ├── Users
 │    ├── Alice
 │    │     └── notes.txt
 │    └── Bob
 └── Program Files

Everything starts from a top-level directory called the root.

  • Windows root example: C:\
  • Linux/macOS root: /

Key Terms You Must Understand

Directory = Folder

File = Document or program

Path = The location of a file or folder

Example path (Windows):

C:\Users\John\Documents\file.txt

Example path (Linux/macOS):

/home/john/Documents/file.txt

A path tells the system exactly where something is located.

Absolute vs Relative Paths

Absolute Path

Starts from the root.

Examples:

Windows:

C:\Users\John\Documents

Linux/macOS:

/home/john/Documents

Relative Path

Starts from your current location.

Example:

Documents

If you are already inside /home/john, then Documents means:

/home/john/Documents

Viewing Where You Are

Linux/macOS:

pwd

This means: Print Working Directory.

Windows (Command Prompt):

cd

It shows your current location.

Listing Files and Folders

Linux/macOS:

ls

Windows:

dir

These commands show what is inside your current folder.

Moving Between Folders

The most important command is:

cd

cd = change directory

Move Into a Folder

Linux/macOS:

cd Documents

Windows:

cd Documents

Move Back One Level

cd ..

The two dots .. mean "go up one folder."

Move to Root

Linux/macOS:

cd /

Windows:

cd \

Move to Home Directory (Linux/macOS)

cd ~

The ~ symbol means your home folder.

Special Navigation Symbols

. = Current directory

.. = Parent directory

~ = Home directory (Linux/macOS)

Example:

cd ../..

This moves up two levels.

Tab Auto-Completion

In most terminals, you can press the TAB key to auto-complete folder names.

Example:

If you type:

cd Doc

Then press TAB, it may complete to:

cd Documents

This saves time and prevents mistakes.

Example Navigation Session (Linux/macOS)

pwd
ls
cd Documents
ls
cd ..
cd /
pwd

Example Navigation Session (Windows)

cd
dir
cd Documents
dir
cd ..
cd \
cd

How the System Actually Handles Navigation

When you type:

cd Documents

The operating system:

  1. Checks if the folder exists
  2. Checks if you have permission
  3. Changes your working directory
  4. Updates the prompt

Your files are not moving. Only your location changes.

Think of it like walking inside a building. The building stays the same, but your position changes.

# Linux/macOS

pwd
ls
cd Documents
cd ..
cd /
cd ~
cd ../..

# Windows Command Prompt

cd
dir
cd Documents
cd ..
cd \
cd
QUICK KNOWLEDGE CHECK

Test Your Understanding

Answer 5 questions generated from this lesson. Your result is calculated instantly and is not saved.

0 / 5 answered
All Courses
Advance AI Bootstrap C C++ Computer Vision Content Writing CSS Cyber Security Data Analysis Deep Learning Email Marketing Excel Figma HTML Java Script Machine Learning MySQLi Node JS PHP Power Bi Python Python for AI Python for Analysis React React Native SEO SMM SQL
Course contents
Cyber Security
01 Introduction 02 Types of Cyber Threats 03 Cyber Security Domains 04 CIA Triad (Confidentiality Integrity Availability) 05 Career paths in Cyber Security 06 Certifications 07 Ethics and Responsible Disclosure 08 Laws and Regulation (e.g. GDPR, NDPR) 09 What is an OS? 10 Types: Window, Linus, macOS 11 Command-line vs GUI 12 OS Internals Overview (filesystems, processes, permissions) 13 Windows command prompt basics 14 Linux Bash Basics 15 File System Navigation 16 Basic Scripting 17 IP Addressing 18 DNS, DHCP 19 Mac Address 20 OSI VS TCP/IP Models 21 Ports and Protocols (TCP, UDP) 22 Common Protocols (HTTPS, FTP, SSH, etc.) 23 Packet structure 24 Firewalls, IDS/IPS, VPNs 25 Common attacks: MITM, Sniffing 26 Secure Network Practices 27 How the Web works 28 HTTP vs HTTPS 29 URLs, Headers, Cookies 30 Client-Server Architecture 31 Introduction To Web Security 32 OWASP Top 10 Overview 33 Common Threats (XSS, SQLi, CSRF) 34 Inpute validation and authentication flow 35 Basic Exploitation demo (e.g. XSS) 36 Burp Suite Introduction 37 Using a Browser For Testing 38 Password security 39 MFA-Antivirus 40 Cyber Hygeine Practice 41 Intro To Tools: Nmap, Wireshark, Netstat