How To Use Windows Command Prompt
A lot of Windows users have never touched the Command Prompt. With today's streamlined operating systems, information technology's like shooting fish in a barrel to utilise a calculator without ever worrying almost entering erstwhile-school text commands in the command line.
Nevertheless, information technology'south a good idea to become familiar with command line basics in Windows. It helps you appreciate the Os more and can come in handy for some tasks. Here's a beginner's guide to the Windows Command Prompt for those who aren't yet familiar.
What Is the Command Prompt?
The Command Prompt, officially called the Windows Command Processor and oft abbreviated to CMD, is the command line interface for Windows operating systems. A command line interface is a way of interacting with a figurer directly using text commands.
These hearken dorsum to the early days of computers, when you had to type commands into a last to execute processes on the machine. Early on PC operating systems, similar MS-DOS, operated exclusively through control-line interfaces. There were no mouse cursor, window management, or like graphical user interface (GUI) elements nosotros take for granted today.
Another term you should know is the discussion "shell," which is used to describe a program that allows the user to give commands to the computer. Then a command line interface, besides as a GUI, are both shells.
Early on versions of Windows, similar Windows 3.1, effectively ran as a visual interface on pinnacle of DOS. Subsequently versions, including Windows 95 through Windows ME, also included MS-DOS integration. These immune yous to run commands through the MS-DOS Prompt, as the Command Prompt was called at the time.
Starting with Windows XP, Windows broke away from MS-DOS. However, in modern versions of Windows, you tin can still use the Command Prompt to interface with your computer direct instead of clicking through diverse menus. The Control Prompt can also run batch files; these make automating tasks piece of cake.
Power users prefer the Control Prompt for some tasks, equally yous tin can take actions with a few uncomplicated keystrokes that would require dozens of clicks in the GUI.
How to Open the Command Prompt in Windows x and Windows xi
There are a few ways to open the Command Prompt in Windows. Beneath are the most convenient:
- Blazon "control prompt" into the Start carte to search for information technology. You can also blazon "cmd" (the short name of the executable that runs the Command Prompt) if y'all adopt.
- Press Win + R to open the Run box, then type "cmd" and hit Enter to open up it.
- Printing Win + X (or right-click the Showtime push) and choose Command Prompt from the menu.
- Depending on your Windows settings, this may show Windows PowerShell or Windows Terminal instead. The new Windows Terminal and PowerShell are both more powerful than the Command Prompt, but are backward-compatible with all CMD commands.
Any of these will open the Control Prompt with regular permissions. A lot of useful commands crave you to have administrator permissions, which will fail with a regular CMD window.
To run the Command Prompt as an admin, hold Ctrl + Shift when y'all launch either of the first two options above. If you use the tertiary option, pick Command Prompt (Admin) (or the respective pick that appears for yous) instead. This volition crave you to accept a UAC prompt, so y'all'll need to be logged into an admin account or provide an admin password.
How to Use the Windows Command Prompt: Nuts
When you lot open up a Command Prompt window, yous'll see some basic info about your electric current Windows version. Beneath this, you'll run across a line like the beneath:
C:\Users\[Username]>
This is your current location. Any commands yous run that rely on location (such as deleting files) volition have identify in this folder. Other CMD commands are more general and don't rely on y'all existence in a specific location.
Information technology'due south of import to know that when working in the Control Prompt, you must type commands exactly every bit the organization expects. Since you're issuing commands straight to your reckoner, information technology won't understand if you type something wrong.
If you blazon a control that your estimator doesn't recognize, yous'll encounter a message that says '[Command]' is not recognized... and Windows won't exercise anything.
This isn't a problem; what'southward more than of a hazard is accidentally typing the incorrect command, or using a command in a mode you didn't intend. For example, when trying to delete one file, y'all might accidentally tell it to delete an entire folder instead.
The command line will run whatsoever you lot tell information technology, as long as it'south a valid option. So you should e'er double-check what you're virtually to do before you lot burn down it off, and don't use an admin Control Prompt for general purposes.
Bones Command Prompt Commands for Beginners
There are lots of Control Prompt commands, and almost of them aren't intuitive for newcomers. Learning them takes some time, so it's all-time to pick upwardly a few at a fourth dimension and slowly build your knowledge.
Permit'south expect at a handful of CMD commands that illustrate its employ for a beginner. These are just a very small sampling of what the Command Prompt tin can do, still. When you're prepare to motility on, take a look at more than CMD commands you should know, equally well as our crook sheet of handy Windows commands.
Getting Assist
Typing help will list many mutual commands that you can apply. These volition get you started, then yous don't have to become looking for command names on your ain.
If you'd like more than specific information about how to employ a certain command, type information technology followed past /?. This will give you more help, plus additional options for modifying how it works.
Listing and Changing Directories
The dir control, which is short for directory, will listing the contents of the folder that you're currently in. As mentioned earlier, you lot tin check this by looking at the folder that appears to the left of your current command.
To alter your electric current location, use cd (short for change directory) followed by the folder you want to visit. Available folders are marked with <DIR> when y'all run the dir command.
So for instance, to movement to your Desktop binder from your default user folder, you would type cd Desktop. Yous can move up one folder by using the cd.. shortcut.
Creating and Deleting Files and Folders
Use mkdir [new folder name] (brand directory) to create a new folder. For case, mkdir Awesome Pics will make a folder called Awesome Pics.
Similarly, rmdir [binder name] (remove directory) will delete a binder, but just if it's empty. To delete a file, utilize del [file proper noun].
CMD Management
If there's also much ataxia on the Control Prompt's screen, blazon cls to articulate the contents and start fresh. And if there's a command running that you want to cancel (maybe it's taking besides long), hit Ctrl + C to end it.
Networking Commands
Some of the well-nigh useful Control Prompt commands deal with networking. Commands like ping permit yous come across if your calculator can achieve a remote destination and how long it takes. Meanwhile, ipconfig lets you see the network overview for your current connectedness.
Learning about CMD commands for managing networks is thus a great utilize of the tool.
Commands for Troubleshooting
A common use for firing upwards the Command Prompt is to run one of several troubleshooting commands. CHKDSK lets yous scan your storage drives for errors, while SFC allows Windows to find and fix corrupt organisation files. For more than, see our comparison of CHKDSK, SFC, and DISM.
Taking the Command Prompt to the Next Level
Now you're familiar with the nuts of the Command Prompt, even if you've never used it before. Some tasks, like managing files and folders, will probably feel clunky in the control line if you lot're used to doing these with the GUI. But for other tasks, like checking your IP accost, running a quick CMD command is much more convenient than clicking through a bunch of menus.
While about CMD commands are specific to the Windows environment, Windows 10 and subsequently also let you to run the Bash shell used by Linux, macOS, and many other OSes. This is worth learning well-nigh if you lot use multiple platforms.
About The Author
How To Use Windows Command Prompt,
Source: https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/
Posted by: curtisaften1971.blogspot.com

0 Response to "How To Use Windows Command Prompt"
Post a Comment