10-Windows-Commands-You-Did-Not-Know-in-CMD
Hello everyone! Today, I am excited to share with you ten hidden or less-known Windows Command Prompt commands. These commands can help you manage your computer more effectively. Since many of you use screen readers to navigate your PC, I will explain each command carefully and step-by-step, so you can easily understand how to use them.
**1. tree**
This command shows a visual structure of all folders and subfolders starting from your current location.
How to use:
- Open your Command Prompt.
- Type `tree` and press Enter.
- The system will display a list of folders in a tree format. If you want to include all subfolders, type `tree /f` and press Enter.
Tip: Use the arrow keys to scroll through the list if it is long.
**2. cipher**
This command encrypts or securely deletes files.
How to use:
- To encrypt a file, type `cipher /e filename` replacing `filename` with the name of the file you want to encrypt, then press Enter.
- To securely delete files so they cannot be recovered, type `cipher /w:folderpath` replacing `folderpath` with the path to the folder where the files are stored, then press Enter.
Tip: Use Tab to autocomplete folder and file names if needed.
**3. fc**
This command compares two files line by line.
How to use:
- Type `fc file1.txt file2.txt` and press Enter.
- The system will show the differences between the two files, indicating which lines differ.
Tip: Make sure to include the full path if files are not in the current directory.
**4. sfc /scannow**
This scans system files for corruption and repairs them.
How to use:
- Open the Command Prompt as administrator.
- Type `sfc /scannow` and press Enter.
- Wait until the scan completes. It may take several minutes.
Tip: During the scan, do not close the Command Prompt until it finishes.
**5. ipconfig /flushdns**
This clears the DNS cache, fixing internet access problems.
How to use:
- Type `ipconfig /flushdns` and press Enter.
- You will see a message confirming that the DNS resolver cache has been successfully flushed.
Tip: Use this command when websites won’t load or load old data.
**6. netsh**
This is a powerful network command tool.
How to use:
- To reset your IP address, type `netsh int ip reset` and press Enter.
- To view your network configuration, type `netsh interface ip show config` and press Enter.
Tip: Use the Tab key to autocomplete commands and options.
**7. powercfg /hibernate off**
This disables hibernation to save disk space.
How to use:
- Open Command Prompt as administrator.
- Type `powercfg /hibernate off` and press Enter.
- You will get a confirmation message.
Tip: To re-enable, type `powercfg /hibernate on`.
**8. eventvwr**
This opens the Event Viewer, which logs system events.
How to use:
- Type `eventvwr` and press Enter.
- The Event Viewer window will open, allowing you to navigate through different logs using your screen reader.
Tip: Use arrow keys to move through logs and Enter to select.
**9. shutdown /a**
This command cancels a shutdown in progress.
How to use:
- Type `shutdown /a` and press Enter.
- If a shutdown is happening, it will be canceled immediately.
Tip: Use this if your computer is shutting down unexpectedly and you want to stop it.
**10. robocopy**
This is a powerful tool for copying large amounts of files.
How to use:
- To copy a folder and its contents, type `robocopy source_folder destination_folder /E` and press Enter.
- Replace `source_folder` and `destination_folder` with the full paths of your folders.
- The `/E` option copies all subfolders, including empty ones.
Tip: Use the Tab key to autocomplete folder paths and check the command with your screen reader.
These commands are very useful and can help you do many tasks more quickly and efficiently. Remember, when typing commands, use your keyboard and screen reader to navigate and hear what you are typing. Practice these commands slowly and carefully, and soon you will master them!
Thank you for reading! I hope this detailed guide helps you use Windows Command Prompt more effectively.
Comments
Post a Comment