cmd.exe commands with explanations - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: Windows 10 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=26) +--- Thread: cmd.exe commands with explanations (/showthread.php?tid=5040) |
cmd.exe commands with explanations - Qomplainerz - 07-25-2023 dir: Lists the files and directories in the current directory. cd: Changes the current directory. For example, "cd C:\Users" navigates to the Users folder on the C drive. mkdir: Creates a new directory. Usage: "mkdir FolderName." rmdir: Removes a directory. Usage: "rmdir /s FolderName" (the /s option is used to delete directories with content). copy: Copies files from one location to another. Usage: "copy SourceFile DestinationFolder." move: Moves files from one location to another. Usage: "move SourceFile DestinationFolder." del: Deletes a file. Usage: "del FileName." ren: Renames a file or directory. Usage: "ren OldName NewName." type: Displays the content of a text file. Usage: "type FileName." echo: Prints a message to the command prompt or a file. Usage: "echo Message" or "echo Message > FileName.txt" (saves the message to a file). ipconfig: Displays network configuration details. Usage: "ipconfig" or "ipconfig /all" (displays detailed information). ping: Sends a network request to a specific IP address or domain to check connectivity. Usage: "ping IPAddress" or "ping DomainName." tracert: Traces the route packets take to reach a specified IP address or domain. Usage: "tracert IPAddress" or "tracert DomainName." netstat: Displays network statistics, such as open ports and active connections. Usage: "netstat" or "netstat -a" (displays all connections). tasklist: Lists all running processes. Usage: "tasklist" or "tasklist /v" (includes more details). taskkill: Terminates or ends a running process. Usage: "taskkill /im ProcessName.exe" or "taskkill /pid ProcessID." shutdown: Shuts down or restarts the computer. Usage: "shutdown /s" (shuts down) or "shutdown /r" (restarts). sfc: Scans and repairs system files. Usage: "sfc /scannow" (scans and repairs) or "sfc /verifyonly" (scans without repairs). chkdsk: Checks and repairs disk errors. Usage: "chkdsk C:" (checks the C drive) or "chkdsk /f C:" (checks and fixes errors). systeminfo: Displays system information, such as OS version, hardware, and more. Usage: "systeminfo." Remember that typing "help" in Command Prompt will display a list of all available commands with brief descriptions. To get more detailed information about a specific command, you can use "command /?" or "help command" (e.g., "dir /?" or "help dir"). |