What is the root directory?
The top level of a filesystem; on Windows it’s the drive root (e.g., C:), on UNIX-like systems it’s /
What is a subdirectory?
A directory created beneath another directory (a child folder)
What do ‘.’ and ‘..’ represent?
’.’ is the current directory; ‘..’ is the parent directory
What is an absolute path vs a relative path?
Absolute starts from the root (e.g., C:\Users\Alice); relative starts from the current directory
What command lists files in the current directory (Windows)?
dir
What dir switch lists recursively?
dir /s
How do you show hidden files with dir?
dir /a or dir /a:h
What command changes the current directory?
cd or chdir
What does ‘cd ..’ do?
Moves up one directory level
What does ‘cd ‘ do?
Changes to the root of the current drive
How do you create a directory?
md or mkdir
How do you create a folder named CTS1133 inside the current folder?
md CTS1133
How do you remove an empty directory?
rd or rmdir
How do you remove a directory tree (and its contents)?
rd /s path (optionally add /q for quiet)
What command edits file attributes?
attrib
What does the read-only attribute do?
Prevents edits to a file (+r sets, -r clears)
What is the archive attribute used for?
Marks files that changed since the last backup (+a sets, -a clears)
What does the system attribute do?
Marks a file as a system file (+s sets, -s clears)
What does the hidden attribute do?
Hides files/folders from normal view (+h sets, -h clears)
How do you make Cheryl.txt read-only?
attrib +r Cheryl.txt
How do you remove the hidden attribute from Cheryl.txt?
attrib -h Cheryl.txt
What is a script?
A text file containing commands that automate a task
In command syntax docs, what do [square brackets] mean?
Optional parameter
In command syntax docs, what does ‘|’ indicate?
Choose one of the alternatives