(Img src: MindMajix Linuxconfig.org)
By clicking, pressing, sliding, hovering, typing, shaking, and speaking, we connect with modern computers. We become capable of commanding the machine by simple gestures.
Many Windows and OS X device operating systems have a graphical user interface that allows us to open and display files, play games, turn on music, etc., all with easy mouse clicks and movements. Many servers, desktop, and laptop operating systems offer another way to manage your machine that many people have never even heard of. It is aptly called the command line (or CLI) interface, the command line, or the prompt command.
The command line, like a graphical user interface, is one way the operating system represents the data, directories, and programs of the machine (which are also files) to the user. Actually, the command line is a text-based interface by which the files and directories of a computer can be precisely navigated, produced, executed, and acted upon.
2 What’s in it for me?
Although it can seem challenging at first, as a computer user, being able to use the command line can inspire you. You’ll be able to simplify and speed up several things that were previously boring once you’ve mastered the fundamentals of using the CLI. You can be very specific about how you want to execute certain tasks on your computer or about which pieces of data it should show. By reading and completing their exercises in this book
3 Microsoft Windows command line basics
The basics of accessing and using the Microsoft Windows command line are addressed in this section. You can learn how to navigate around the command line, locate files, control files, and other essential commands in this section. Bear in mind that in MS-DOS and the Windows command line, there are over 100 separate commands used.
-Get into the command line of Windows
By following the steps below, open a Windows command line window.
1 Start clicking.
2 Type cmd (short for a command) in the Search or Run line, and press Enter.
1 MS-DOS and the command line for Windows are not case-sensitive.
2 In the command line, the files, and directories displayed in Windows are also found.
3 When a file or directory on the command line is removed, it is not transferred to the Recycling Bin.
4 Type /? after the order if you need help with any of the commands. For example, dir /? will offer the options for the dir command that are available.
-Building a directory
Let’s start creating new directories now with your basic understanding of navigating the command line. Use the mkdir command to construct a directory inside the current directory. For example, by typing the mkdir test at the prompt, create a directory named ‘test’. If generated successfully, without an error message, you are returned to the prompt. Switch to that directory with the cd command after the directory is established.
You may want to copy or list files on a separate drive in certain circumstances. Type the drive letter of the drive, followed by a colon, to turn drives on the Windows command line. For instance, if the D drive is your CD-ROM drive, type d: and press Enter. The prompt will change to the drive letter if the drive exists. If the drive does not exist or is not available (for example, there is no disc on the CD-ROM drive), an error occurs.
-Moving a file and copying it
Let’s shift it to an alternate directory now that we’ve created a file. Create another directory for the files to help make it simpler. So, type in mkdir dir2 to create a new directory named dir2 in the test directory. Use the move command after the new directory is generated to move the example. In that directory, the bat file. To do this, type an example of moving. To the prompt, bat dir2. If it is completed successfully, you will receive a message stating that the file has been transferred. Instead of transferring it, you may also replace the move command with the copy command to copy the file.
-Renaming a file
After the file has been transferred to the dir2 directory, transfer the cd command to that directory to rename the file. Use the rename command in the dir2 directory to rename the example file to an alternative name. Type an example with rename. First to bat. Bat at the prompt to rename the “first.bat” file. Now, you see “first.bat” as the only file when using the dir button.
That’s all thanks for reading.