DEV Community

Cover image for Windows File System Navigation & System Information
Sajjad Rahman
Sajjad Rahman

Posted on

Windows File System Navigation & System Information

πŸ“˜ Windows File System Navigation & System Information

(Beginner-Friendly Notes for Ethical Hacking / Windows Basics)


1️⃣ Windows Command Line Basics (CMD)

πŸ”Ή Command Prompt (cmd.exe)

  • Windows command-line interface
  • Used to navigate files, run commands, and gather system info
  • Commands are NOT case-sensitive
  cd desktop
  cd Desktop
  cd DESKTOP
Enter fullscreen mode Exit fullscreen mode

βœ”οΈ All work the same, even though actual folder name is Desktop


2️⃣ Changing Directories (cd Command)

πŸ”Ή Move to Another Folder

cd Desktop
Enter fullscreen mode Exit fullscreen mode

➑️ Moves into the Desktop directory

πŸ”Ή Go Back One Level (Parent Directory)

cd ..
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή Go to Root Directory

cd /
Enter fullscreen mode Exit fullscreen mode

or

cd \
Enter fullscreen mode Exit fullscreen mode

πŸ“Œ Example:

C:\Users\F C\Desktop> cd /
C:\>
Enter fullscreen mode Exit fullscreen mode

βœ”οΈ You are now in the root directory


3️⃣ Understanding Root Directory (C:\)

  • Root directory = starting point of the Windows file system
  • Example:
C:\
Enter fullscreen mode Exit fullscreen mode

Common Root Folders

Folder Purpose
Windows OS files
Program Files 64-bit apps
Program Files (x86) 32-bit apps
Users User accounts
ProgramData Shared app data (hidden)

4️⃣ Listing Files & Folders (dir Command)

πŸ”Ή Basic Listing

dir
Enter fullscreen mode Exit fullscreen mode

πŸ“Œ Shows:

  • Files
  • Folders (<DIR>)
  • File size
  • Date & time

βœ”οΈ dir is a built-in command in cmd.exe


πŸ”Ή Directory Symbols

Symbol Meaning
. Current directory
.. Parent directory

5️⃣ Showing Hidden Files (dir /a)

πŸ”Ή Command

dir /a
Enter fullscreen mode Exit fullscreen mode

πŸ“Œ /a = show ALL files, including:

  • Hidden
  • System
  • Junctions
  • Symbolic links

Example Output Explained

<SYMLINKD>  All Users -> C:\ProgramData
<JUNCTION> Default User -> C:\Users\Default
Enter fullscreen mode Exit fullscreen mode

βœ”οΈ These are links, not real folders


6️⃣ Windows Users Directory (C:\Users)

Structure

C:\Users
 β”œβ”€β”€ Public
 β”œβ”€β”€ F C
 β”œβ”€β”€ Default
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή Public Folder

  • Shared by all users
  • Any user can access files inside

πŸ”Ή User Folder (F C)

  • Created at first login
  • Contains:

    • Desktop
    • Documents
    • Downloads
    • AppData

πŸ”Ή Multiple Users in Windows

  • Windows supports multiple users
  • Each user has:

    • Separate files
    • Separate settings
    • Separate Temp files
    C:\Users\<username>\AppData\Local\Temp
    

πŸ“Œ New users can be created from:

  • Control Panel
  • Settings β†’ Accounts
  • Or via admin commands

7️⃣ AppData Folder (Important for Hackers)

πŸ“ Path:

C:\Users\F C\AppData
Enter fullscreen mode Exit fullscreen mode
Folder Purpose
Local App cache, temp data
Roaming Syncable user data
LocalLow Low-privilege apps

πŸ“Œ Hidden by default


8️⃣ System Information (systeminfo)

πŸ”Ή Basic Command

systeminfo
Enter fullscreen mode Exit fullscreen mode

What It Shows

  • OS version
  • Build number
  • Installed hotfixes
  • Hardware info
  • Network info
  • Boot time

βœ”οΈ Very useful for enumeration


πŸ”Ή Invalid Syntax Example (Corrected)

❌ Wrong:

systeminfo -S
Enter fullscreen mode Exit fullscreen mode

βœ”οΈ Correct:

systeminfo /S system_name
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή Help Menu

systeminfo /?
Enter fullscreen mode Exit fullscreen mode

Shows all valid options:

  • /S β†’ Remote system
  • /U β†’ Username
  • /P β†’ Password
  • /FO β†’ Output format (TABLE / LIST / CSV)

9️⃣ Environment Variables

πŸ”Ή Linux vs Windows Syntax

OS Syntax
Linux $USER
Windows %USERNAME%

❌ Wrong:

echo $username
Enter fullscreen mode Exit fullscreen mode

βœ”οΈ Correct:

echo %username%
Enter fullscreen mode Exit fullscreen mode

Output

F C
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή View All Variables

set
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή Custom Variable Example

set samina="sajjad"
echo %samina%
Enter fullscreen mode Exit fullscreen mode

πŸ“Œ Variables set like this:

  • Are temporary
  • Reset after closing CMD

πŸ”Ÿ External System Tools (Sysinternals)

πŸ”Ή Why Needed?

Some commands like psinfo:

  • ❌ Not built-in
  • βœ”οΈ Must be downloaded

πŸ”Ή Sysinternals Suite

  • Official Microsoft tools
  • Used for:

    • System enumeration
    • Process analysis
    • Memory inspection

πŸ“₯ Download:

https://learn.microsoft.com/en-us/sysinternals/downloads
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή Example: psinfo

Shows:

  • Uptime
  • Kernel version
  • CPU info
  • RAM
  • Video driver

βœ”οΈ Useful for post-exploitation enumeration


1️⃣1️⃣ Key Takeaways (Quick Revision)

  • cd β†’ change directory
  • cd / β†’ root directory
  • dir β†’ list files
  • dir /a β†’ show hidden files
  • %USERNAME% β†’ Windows variable syntax
  • systeminfo β†’ OS & hardware info
  • Sysinternals β†’ advanced enumeration tools
  • Each Windows user has:

    • Separate profile
    • Separate temp files
    • Separate AppData

Top comments (0)