Command Prompt Tutorial : Codes For CMD
Basic command prompt tutorial
1. **cd (Change Directory)**:
- Usage: `cd [directory]`
- Explanation: Used to change the current working directory. You can specify the directory you want to navigate to after the `cd` command.
2. **dir (Directory Listing)**:
- Usage: `dir [directory]`
- Explanation: Lists the contents of the specified directory. If no directory is specified, it lists the contents of the current directory.
3. **mkdir (Make Directory)**:
- Usage: `mkdir [directory name]`
- Explanation: Creates a new directory with the specified name.
4. **rmdir (Remove Directory)**:
- Usage: `rmdir [directory name]`
- Explanation: Deletes the specified directory. Note: the directory must be empty for this command to work.
5. **del (Delete)**:
- Usage: `del [file name]`
- Explanation: Deletes the specified file.
6. **copy**:
- Usage: `copy [source] [destination]`
- Explanation: Copies one or more files from one location to another. You specify the source file(s) and the destination directory.
7. **move**:
- Usage: `move [source] [destination]`
- Explanation: Moves one or more files from one location to another. It's similar to the `copy` command, but it also removes the original file.
8. **ren (Rename)**:
- Usage: `ren [current file name] [new file name]`
- Explanation: Renames a file or directory to the specified new name.
9. **echo**:
- Usage: `echo [text]`
- Explanation: Prints text to the command prompt or can be used to redirect output to a file.
10. **type**:
- Usage: `type [file name]`
- Explanation: Displays the contents of the specified text file.
11. **cls (Clear Screen)**:
- Usage: `cls`
- Explanation: Clears the command prompt window.
12. **ipconfig (IP Configuration)**:
- Usage: `ipconfig`
- Explanation: Displays the TCP/IP network configuration information for the computer.
13. **ping**:
- Usage: `ping [host]`
- Explanation: Sends a network ICMP echo request to a specified host to test if it is reachable and measure round-trip time.
14. **tasklist**:
- Usage: `tasklist`
- Explanation: Displays a list of all running processes on the computer.
15. **taskkill**:
- Usage: `taskkill /PID [process ID]` or `taskkill /IM [image name]`
- Explanation: Terminates a running process. You can specify the process ID or the image name.
These are just a few of the many commands available in the Windows Command Prompt. Each command has additional options and parameters that you can explore using the `/?` option, e.g., `dir /?` for directory listing command options.
Join this channel to get access to perks:
https://www.youtube.com/channel/UCJdXMYn7RaOv8QAsBj1b96Q/join
Other Videos By B Learning Club
Other Statistics
Prompt Statistics For B Learning Club
B Learning Club currently has 30 views spread across 1 video for Prompt. Less than an hour worth of Prompt videos were uploaded to his channel, less than 0.41% of the total video content that B Learning Club has uploaded to YouTube.