Menu

Command Prompt Textbook

A learning site where you can intuitively understand how to use the command prompt with practical and graphical samples. We also have plenty of practice problems to help you acquire knowledge.
Command Prompt practice questions 171 questions 171 questions by topic. Answer in your browser and check instantly. Start practicing →

Introduction to Command Prompt

List of Commands

arp - Check IP-to-MAC Address Mappings

Learn how to use the arp command to check the table (ARP table) that maps IP addresses to MAC addresses for devices on t

assoc / ftype - File Associations

Learn how to view and change the link between file extensions and apps using the assoc and ftype commands in Command Pro

attrib - Change file attributes

Use the attrib command in Command Prompt to view and change file and folder attributes: read-only, hidden, system, and a

call - Execute Other Batch Files

Learn how to run another batch file from a batch file with the call command. Covers why control does not return without

cd/chdir - Changing Directories

Learn how to change directories with the cd (chdir) command in Command Prompt and batch files: moving to a parent direct

CERTUTIL - Hash Values & Base64

Learn how to use the CERTUTIL command to calculate SHA-256 or MD5 hashes and check that a downloaded file is not corrupt

chcp - Switch the Character Encoding

Learn how to check and change the Command Prompt code page with the chcp command. Covers 932 (Shift_JIS) vs 65001 (UTF-8

chkdsk - Check and Repair Disk Errors

Learn how to scan and repair drive errors and bad sectors with the chkdsk command. Covers the difference between /f and

choice - Prompt the user for input

Use the choice command to let the user pick Yes/No or other options in the command prompt or a batch file. Learn the /c,

cipher - Encrypt Folders and Wipe Free Space

Learn how to use the cipher command to encrypt NTFS files and folders (EFS) and to overwrite deleted data left in free d

See the list of commands by task

Tips

All articles

Read More