The Command Line, 1981

MS-DOS ran on nearly every PC for a decade, and it was learned one command at a time. This era gives you a simulated 386 with a working filesystem, so DIR, COPY, CHKDSK and batch files answer the way they did.

Classic shells track · 31 missions · boss mission, no written exam · free, no signup. Everything below runs in the browser terminal on the SERVBG home page.

Open The Command Line in the terminal

What you will do

  1. list files and folders DIR

    Tim Paterson wrote DOS in 6 weeks, 1981. Microsoft paid $50,000 for it.

  2. show OS version VER

    MS-DOS 6.22, 1994. Version numbers defined which software would run.

  3. list all commands HELP

    The entire OS fit on one 1.44MB floppy. Every byte was precious.

  4. clear the screen CLS

    No GUI, no mouse. CLS was your only refresh button.

  5. show or set the date DATE

    Early PCs had no real-time clock chip. You typed the date on every boot.

  6. show or set the time TIME

    Before CMOS batteries, computers forgot everything when powered off.

  7. display a text file TYPE README.TXT

    Before .PDF, before .DOC — plain .TXT was the universal format.

  8. print text to screen ECHO hello world

    Batch files (.BAT) were millions of people's first taste of programming.

  9. show environment variables SET

    AUTOEXEC.BAT ran on every boot. Tuning it was a rite of passage.

  10. show memory usage MEM

    The 640KB conventional memory limit shaped PC software for 15 years.

  11. check disk for errors CHKDSK

    Lost clusters, cross-linked files — FAT16 was fragile. CHKDSK ran at every crash.

  12. scan disk surface for bad sectors SCANDISK

    SCANDISK replaced CHKDSK in DOS 6.2. Surface scan found physical bad sectors before data loss.

  13. defragment the hard drive DEFRAG

    HDDs were fastest reading consecutive sectors. Fragmentation cut speed by 50% over months of use.

  14. copy files and subdirectories recursively XCOPY /S

    XCOPY replaced COPY for tree copies. /S recurses dirs, /E includes empty dirs, /Y skips confirm.

  15. view or change file attributes ATTRIB

    Four attributes: Read-only, Hidden, System, Archive. The basis of early file access control.

  16. enable command history and macros DOSKEY

    Before readline, there was DOSKEY. Macros like DOSKEY LL=DIR /W saved thousands of keystrokes.

  17. configure COM port or display MODE COM1:9600,N,8,1

    Sound Blaster IRQ/DMA/I/O conflicts were a rite of passage. MODE and BLASTER= SET solved serial ports.

  18. open the DOS text editor EDIT AUTOEXEC.BAT

    AUTOEXEC.BAT ran every boot. One wrong line meant a non-booting PC — and a lesson never forgotten.

  19. inspect and patch executables DEBUG

    DEBUG.EXE: hex editor, disassembler, raw memory writer. Every cracker in 1988 lived here.

  20. launch the QBasic IDE QBASIC

    QBASIC replaced GW-BASIC in 1991. Millions wrote their first structured program in it.

  21. create or delete disk partitions FDISK

    FDISK /MBR could revive a virus-infected boot sector. One wrong move wiped everything. Respect it.

  22. run Interlnk server for direct PC transfer INTERSVR

    Interlnk/Intersvr: file transfer over a null modem cable. Predated USB. A LAN for two laptops.

  23. redirect ECHO output into a new file instead of the screen ECHO HELLO WORLD > GREETING.TXT

    The > operator reached DOS 2.0 in 1983, borrowed from Unix. Output no longer had to go to a screen.

  24. append output to a file without erasing what is already there ECHO SEE YOU LATER >> GREETING.TXT

    One > too few and >> would silently wipe a file. A generation of BBS sysops learned this the hard way.

  25. pipe output through MORE.COM to page it one screen at a time TYPE GREETING.TXT | MORE

    DOS piping was a trick: COMMAND.COM wrote the first program's output to a temp file, then fed it to the second. Unix pipes never touched disk.

  26. filter DIR output for matching lines with FIND DIR | FIND "BAT"

    FIND.EXE was DOS's answer to grep — one literal string, no regex, and proud of it.

  27. create a file by typing it straight from the keyboard — no editor needed COPY CON HELLO.BAT

    CON was the console device. COPY CON FILENAME, then text, then F6/^Z — how millions wrote their first file before EDIT.COM existed.

  28. run the batch file you just created — watch it expand %NAME% and check IF EXIST live HELLO.BAT

    COMMAND.COM searched the current directory then PATH for a matching .COM, .EXE, then .BAT — in that order.

  29. define an environment variable for the current session SET NAME=SERVBG

    AUTOEXEC.BAT was mostly a wall of SET lines. Get one wrong and a program couldn't find its own data.

  30. branch batch logic on whether a file exists IF EXIST HELLO.BAT ECHO FOUND IT

    IF EXIST / IF NOT EXIST / IF ERRORLEVEL were the entirety of DOS batch logic. No loops without GOTO.

  31. Boss missionenable disk cache SMARTDRV

    SmartDrive cut boot times 40% by caching disk reads. Write-back mode was faster but risky on crash.

Certificate

This is one of the original eras, so it ends at the boss mission: there is no written exam and no certificate for it. Clearing the boss marks the era complete and banks the XP. The expansion tracks (networking, Cisco IOS, FortiOS, containers, Kubernetes, cloud, operations, defence, models and the nine graphics eras) are the ones that carry exams.

Nearby eras

Previous
1978 · The BBS
Dial a real 1990s bulletin board on a US Robotics 14.4: ANSI menus, message areas, file downloads, door games. The internet before the internet.
Next
1991 · The Open Machine
Live in a Unix shell: ls, grep, sed, awk, pipes, ssh, systemd. The 1969 model that still secures the internet today.

All 25 eras in the Terminal Academy

Open The Command Line in the terminal