Basic Windows Prompt Commands for Every Day
Command prompt, or CMD is an application that is used to interpret command lines. It is available in all Windows Operating Systems. You can perform simple tasks, automated tasks using scripts and batch files, or perform advanced functions that are exclusive to the administrator. It is also a good tool for troubleshooting so that you can check what is wrong with your PC. So, here are some basic Windows Prompt commands that you can use daily.
- File Compare is a command that you can use to compare two files to identify any differences between the content or binary code. It is an easy-to-use code that can compare both ASCII and Unicode text contents and binary codes.
Some switches are used to instruct the file compare command to perform specific actions. These switches are:
- /b: used to perform a binary comparison
- /c: helpful in performing case insensitive comparisons
- /a: used to view only the first and last lines for every comparison.
- /l: compare files as ASCII text
- /n: This switch is used to show all line numbers. However, its use is restricted to ASCII only.
The general syntax of the File Compare command is
fc [switch] [pathname1] [pathname2]
- Have you ever wondered why your computer always opens Microsoft Word when you open a .doc or .docx file or Adobe Reader when you open a .PDF file?
This happens because your computer can associate a specific file extension with a specific program. And in Command Prompt, you can use the Association command to view them and make any changes.
If you want to view all the file associations your computer is aware of, type ASSOC in the command line. You will be able to view all the file extensions and which programs are associated with them.
- Trying to figure out what is wrong with your network is tricky. And that is where the IPCONFIG command comes to use. This command is used to view detailed information about your network adapters and will show whether any of the adapters are connected or not. It also shows the IP addresses for a network connection, i.e.
- Current IP address
- Subnet Mask
- Current Domain
- Default Gateway
To view all the details, type ipconfig on the command line and press Enter.
- System File Checker is used to scan your operating system and find out if any file is missing or corrupted. It detects those errors and tries to replace those corrupted files with the proper files.
There are multiple commands that you can use for the System File Checker. However, the scannow command is the most useful in daily life.
Open the Command Prompt with administrator privileges. The syntax of the command is
It will take some time to detect and fix any errors.
- The POWERCFG command is really helpful for laptop users. It shows whether your power settings are configured for efficiency or not.
Open Command Prompt as an administrator. On the command line, enter
It will run for 60 seconds and observe the system to generate a report. The report is generated in an .HTML format (use any browser to open). After the computer generates the report, Command Prompt will show the location where the file is located.
These are some of the most important Windows prompt command lines that you can use.
Other useful articles:
- Basic Windows CMD commands
- Cool CMD Commands Tips and Tricks
- Best CMD Commands for Hacking
- CMD Commands for Wireless Network Speed
- Useful Keyboard Shortcuts for CMD
- What Info about My Laptop Can I Check with CMD and How?
- Getting Started with CMD Windows
- TOP-12 Command-Line Interview Questions (Basic)
- Command-Line Interview Questions (Advanced)
- CMD Commands to Repair Windows
- CMD Commands to Speed Up Computer
- CMD Commands for MAC OS
- How Does the Command Line Work?
- MS-Dos Interview Questions in 2021
- Windows OS Versions and History
- Recent Windows Versions Compared
- Basic Windows Prompt Commands for Every Day
- Windows Command Line Cheat Sheet For Everyone
- Windows Command Line Restart
- Windows Command Line for Loop
- Windows Command - Change Directory
- Windows Command - Delete Directory
- Windows Command Line – Set Environment Variable