Exploring the world of the windows based system is a nice thing, and that can get better if you should get your hands on command prompt codes that can help make settings easier for you.
The windows command prompt, also known as the CMD, allows you to have greater control over your computer.
Windows command prompt is an essential feature of Windows. Regular users consider it a crucial part of Windows.
This post will show you how to use the command prompt syntax in Windows.
Oh! If you’re a novice or are not familiar with command prompts, there are many ways to open the command prompt interface.
These options are available regardless of whether you’re using Windows 7 or 8 and 10.
Table of Contents
These steps will allow you to open cmd
Type cmd into the start menu search bar. Then, right-click to open as administrator
Alternatively, to open Run, press the “windows” key+R, then type cmd and hit enter.
And so here we go to learn more
Dir
The dir command will show you a list of files in a directory. This command specifies the drive, directories, and/or files that it will list.
You can also see important information such as the serial number of your hard drive, number of files listed, combined size, and the amount of space remaining on your computer.
Type “dir/” to get usage assistance for dir
IPCONFIG
Ipconfig is an acronym for internet protocol (IP configuration). It returns details about your current network adapter connection, including subnet masks, default gateway IPs, and domains.
Although network troubleshooting can be difficult, IP config is a great tool to help you troubleshoot router issues and other issues.
Type /IPCONFIG to get started
SFC/scannow
This command is one of the essential Windows commands. System file checker (SFC), an automated scan and repair tool, focuses on Windows system files.
If you are concerned that your system files might be corrupted by a virus or other software, the SFC/scannow command will scan your files and repair any problems.
To successfully initiate or run this command, you will need to open CMD with administrator privileges.
Cmd Administrator to run
Search cmd using the start menu search bar, right-click and click on the run as administrator.
SystemInfo
This command is one I love because it displays basic information about the windows operating system for a remote or local machine.
The original Windows installation date, OS version, model type, OS name, OS version, manufacturer, and processor details can all be obtained.
HINT: Type the command/? to get help with the usage of a specific command e.g. systeminfo/? this will display SystemInfo usage information
Ping
The ping command is well-known to network administrators. This command checks TCP/IP connectivity to a web host. It sends test packets across the network to the target computer.
To test whether your computer is able to access another computer, server, or website, you can use the ping command.
Example: ping www.google.com or ping www.bing.com
Tracert
Send an internet control message protocol request message to trace the route of the Tracert command traceroute to a remote host.
This command tracks the route your internet traffic takes from your browser to remote systems like Google servers. You can also get the following information
- How long it takes to reach each hop
- Numerous hop varieties
- The IP address and, most often, the name of each hop
Type in the cmd tracert www.google.com
Powercfg
Power configuration commands allow users to adjust power settings on a local computer. This command is very powerful and can be used to manage and track how energy is being used by your computer.
You can use powercfg if you are frustrated by how fast your laptop is running out of power. This will help you to be able to identify any errors or warnings that could help improve your computer’s power efficiency.
To generate a report on battery usage, you can use the command “powercfg/batteryreport”.
You can also use “powercfg/energy” to obtain a systematic analysis of common energy efficiency and battery life issues.
Run CMD and type “powercfg/?” to get usage information.
Chkdsk
This command, also known as “check disk” is used to correct errors on your hard drive.
This command scans your c:partition hard drive for errors and repairs bad sectors.
SFC/scannow can check the integrity of core system files. Chkdsk scans the entire drive.
TaskList
For advanced troubleshooting, the Tasklist is very helpful. Tasklist displays a list with process IDs (PIDs) and applications currently running on your computer.
Although the task manager made it redundant, the tasklist command can still find tasks hidden in that utility. You can also use taskList switch commands.
To get help with the command, type “taskList/?”
You can also type “taskmgr” which will open the task manager window, where you can view all of the processes.
Taskkill
TaskList lists all running apps and services. This is used to end one or more processes, either by name or process ID.
Example: Taskkill-PID 3125
Taskkill – In Explorer.
Drivequery
Missing or incorrect driver configurations can cause your computer’s behavior to be erratic.
Administrators can display a list of all installed drivers with the drive query command.
Driverquery commands can be used to find out which drivers are installed on your computer. It also displays information about the directory where the driver is located.
Color
The default cmd interface screen is black and white, which may be a problem for you. This command changes the background and text foreground colors.
Two hexadecimal numbers are used to specify the color command attributes. The first is for the background, and the second is for the foreground.
By changing the color 02 to “color 01”, the background will be changed to black and the text to green.
Rmdir
The rmdir command is used to completely remove/delete a folder or subdirectory. This command is the base of cmd. You can also use the RD command in place of RMdir.
Help
The help command provides more information about any command prompt and online information.
Schtasks
Schedule task, also known as “schedule task,” is used to set up command(s) to run at a particular time. Let’s suppose you have a batch of files store on your computer and want to run it at a specific time.
You can schedule when the program/command will run by using schtask. It accepts arguments such as daily, hourly, monthly, daily, and weekly. You can use the schtask to create, modify, run, delete, query, and terminate scheduled tasks.
Conclusion
There are many other commands that can be used in Windows. The importance of these cmds is to help windows user use their PC well with the ease of command.
These commands are just a few of many available to the Windows operating system.
I hope that you are now more familiar with the usage of windows command lines and you can find more with microsoft.