Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 2: DOS — Booting, Files & Directories

Lesson 19 of 34 in the free Fundamentals of IT & Computers notes on Siksha Sarovar, written by Rohit Jangra.

Unit II — DOS: Booting, Files & Directories

DOS (Disk Operating System) is a single-user, single-tasking command-line operating system developed by Microsoft (MS-DOS). Although largely replaced by Windows, DOS concepts remain important for understanding OS fundamentals and for exam purposes.

---

Booting Sequence

Booting is the process of starting a computer and loading the operating system into RAM. There are two types:

TypeDescription
Cold BootStarting a computer from a completely powered-off state (pressing Power button)
Warm BootRestarting a running computer (Ctrl + Alt + Del / Restart option)

DOS Booting Steps:

  1. Power ON → CPU reads BIOS from ROM.
  2. BIOS performs POST (Power-On Self Test) — checks RAM, keyboard, disk.
  3. BIOS locates the boot device (hard disk, USB).
  4. BIOS loads the Master Boot Record (MBR) from the first sector of the boot disk.
  5. MBR loads the DOS boot sector → loads IO.SYS and MSDOS.SYS.
  6. COMMAND.COM is loaded → provides the command prompt (C:>).
  7. AUTOEXEC.BAT and CONFIG.SYS (configuration files) are executed.
  8. User sees the DOS prompt: C:>

---

File Concepts in DOS

A file is a named collection of related data stored on disk.

DOS File Naming Rules (8.3 Format):

  • Filename: up to 8 characters
  • Extension: up to 3 characters (after the dot)
  • No spaces; no special characters except $, !, @, #, %, &, (, ), -, _
  • Not case-sensitive

Examples: REPORT.TXT, PROGRAM.EXE, DATA.BAT

Common File Extensions:

ExtensionFile Type
.EXEExecutable program
.COMCommand file (small executable)
.BATBatch file (list of DOS commands)
.TXTText file
.SYSSystem file

---

Directory Concepts

A directory (folder) is a container that holds files and other directories, forming a tree structure.

TermDescription
Root DirectoryTop-level directory of a drive (C:)
SubdirectoryA directory inside another directory
Current DirectoryThe directory you are currently in
Parent DirectoryThe directory one level above (accessed with ..)
PathFull address of a file: C:DOCSREPORT.TXT

Directory Tree Example:

C:├── DOS├── WINDOWS└── DOCS    ├── REPORT.TXT
    └── NOTES.TXT

---

Wildcards

WildcardMeaningExample
*Matches any number of characters*.TXT → all .TXT files
?Matches exactly one characterFILE?.DOC → FILE1.DOC, FILE2.DOC
Key Takeaway: DOS uses an 8.3 filename convention and a hierarchical directory tree. The booting sequence — BIOS → POST → MBR → IO.SYS → COMMAND.COM — is a standard exam question. Understanding absolute vs relative paths and wildcard usage is also frequently tested.