File System Command Prompt
Windows Command Prompt (CLI) allows interaction with the OS via typed commands.
Most commands can be used with standard user privileges; elevated (administrative) permissions are needed for others.
To run Command Prompt as administrator:
Search for "cmd" > right-click and select "Run as administrator".
Alternatively, type
cmdand press Control+Shift+Enter.
Common commands include:
help: Provides details about commands.dir: Lists files and directories in the current folder.cd(orchdir): Changes the current directory.mkdir(ormd): Creates a new directory.rmdir(orrd): Removes a directory.
Use
clsto clear the command line screen.Commas can be used with
..to move up to it’s direct parent directory.Drive letters designate different storage partitions (e.g., C: for the main storage).
The
hostnamecommand shows the name of the current computer.The
formatcommand establishes a file system on a partition, which can erase existing data; use it cautiously.File copying commands:
copy: Copy files, supports /v for verification and /y for overwriting without prompts.xcopy: Copies files and directories, including subdirectories.robocopy: Advanced copy functionality with options for efficiency and bandwidth control.
The
shutdowncommand:shutdown /sto shut down.shutdown /rto restart.shutdown /ato abort a scheduled shutdown.
The
diskpartcommand manages disks and partitions; use with care due to the risk of data loss.The
winvercommand displays the current Windows version, useful for troubleshooting.gpupdateis used to force a group policy update without logging off.