Command Prompt practice questions
Pick an answer and press "Check answer" to see right away whether you got it. If you are unsure, open "Read the article" to review the command and then try again. Questions you answer correctly are remembered in this browser.
171 questions
Solved 0 / 171
Choose a topic
- Basics and batch file syntax 47 questions Covered articles: Calculation (Arithmetic) / Chaining Commands / Character Encoding and Garbled Text / Checking File Existence / Create a New Folder / Create Empty File / Creating Variables / Delayed Expansion / Delete Files and Folders / ERRORLEVEL / Escaping Special Characters / Getting Date and Time / Help (HELP and /?) / How to Create a Batch File / Launching Command Prompt / Move to a Different Directory / Passing Arguments to Batch Files / Persistent Environment Variables and PATH / Pipes and Filters / Reading User Input / Redirection / Renaming Files / Run PowerShell from Command Prompt / Searching for Files / String Operations / Subroutines and Return Values / Tips and Tricks / UAC Auto-Elevation / Wildcards Solved 0 / 47 Practice this topic →
- Files and folders 27 questions Covered articles: assoc / ftype - File Associations / attrib - Change file attributes / copy - File Copying / del/erase - Delete files / FORFILES - Process Files in Bulk / icacls - View and Change Permissions / mklink - Create Links / move - Move files and folders / pushd, popd / rd/rmdir - Delete a folder / robocopy - Advanced Copy / subst - Assign a Folder to a Drive / TAR - Compress and Extract / tree - Display Directory Structure / WHERE - Find Executables / xcopy - Advanced File Copy Solved 0 / 27 Practice this topic →
- Text, output and the console 20 questions Covered articles: CERTUTIL - Hash Values & Base64 / chcp - Switch the Character Encoding / CLIP - Copy to Clipboard / color / title - Colors and Window Title / DOSKEY - Macros and Aliases / echo - Display Text / FC - Compare Files / findstr - Advanced Text Search / MODE - Window Size and Key Repeat / prompt - Customize the Command Prompt / SORT - Sort Lines of Text Solved 0 / 20 Practice this topic →
- Batch file control 23 questions Covered articles: call - Execute Other Batch Files / choice - Prompt the user for input / cmd - Start the command processor / exit - Terminate a program / for - Loop Command / goto - Jump to a Label / if - Conditional Branching / PAUSE - Pause / rem - Comment / setlocal, endlocal / start - Run Other Batch Files / timeout - Wait Solved 0 / 23 Practice this topic →
- Network 23 questions Covered articles: arp - Check IP-to-MAC Address Mappings / curl - Download and Send Data over HTTP / getmac - Check MAC Addresses / ipconfig - Check IP Address / net - Manage Users, Services, and Shares / netsh - View and Change Network Settings / netstat - Check network connections / nslookup - Look Up DNS Records / pathping - Find packet loss along a route / ping - Network Connectivity Check / route - View and Edit the Routing Table / tracert - Trace the Network Route Solved 0 / 23 Practice this topic →
- System, processes and disks 31 questions Covered articles: chkdsk - Check and Repair Disk Errors / cipher - Encrypt Folders and Wipe Free Space / diskpart - Manage Disks and Partitions / driverquery - List Installed Drivers / fsutil - Inspect and Manage the File System / powercfg - Check Power Settings and Battery / reg - Work with the Registry / runas - Run as a different user / sc - Manage Services / schtasks - Task Scheduler / sfc / DISM - Repair System Files / SHUTDOWN - Shut Down / SYSTEMINFO (System Information) / taskkill - Terminate Processes / tasklist - List Running Processes / wevtutil - Inspect event logs / whoami - Check the Current User / WINGET - Package Manager Solved 0 / 31 Practice this topic →
Try 3 questions first
✓ Solved