Why CLI or the Command Line Interface is a Techs friend? Part 2

Warning! Any computer manipulate in is done at your risk!

NOTE: The information shared in this applies to Windows 10, Windows 8.1 and Windows 7. Note that, for simplicity, we will use screenshots taken only in Windows 10

NOTE: Command Prompt is not case sensitive, meaning that commands can be typed with capital letters, lowercase or any combination of them. The commands CD, cd or Cd will all work in the same way.

Command Prompt is not built only on advanced commands, but also on simple commands designed to perform basic operations. So don’t be afraid of it, just know you can have devastating issues if you are not careful. That said I learned one command at a time just as I want you to, so play a bit and have fun just be careful.

I am using a USB thumb drive marked as H:, but if you feel safe you could create a folder on your system drive usually C: So replace anything I enter as an H:  with a C: or the drive letter of your folder and you should be good.

So let’s start with making How to access a certain drive volumes. So depending on your system you could have any number or drive or volumes like on my PC I have 4 drives and 6 volumes. So you can look at a volume as a section of the hard drive allocated for use and assigned a drive letter.  But one most remember you can have unallocated volumes but that is another lesson.  So let’s say you are on C: and want to go to H: simply type in the drive letter: followed by enter. Like for me I would Type H: (Then Press Enter)


So as you can see by entering the command above I have moved to the drive I wanted. So let’s make some files and folders to view.
First let’s make a folder, you can name this anything but I am going with x86_Root. So to do this lets use the md or make directory command. Just say “md folder name” so I would Type: md x86_Root (Then Press Enter)


But wait how do I know it was made? That is where the dir command comes in. This is probably the one tool you will use the most in the CLI. dir shows a list of the directory structure of the folder you are in like in my example I was in the root of H:. So let’s see what we have by Typing: dir (Then Press Enter)


So now let’s move to the directory by using the CD command. CD being short for change directory. So let’s Type: cd x86_Root (Then Press Enter)


So as you can see I have moved to x85_Root and ran a dir to show I am in the folder. You can also know this by seeing H:\x86_Root
Now let’s create a file.

So I like simple using Echo for this. Not sure if you remember Echo from my last post but simply echo just adds what is follow on the screen, such as when I used echo Hello CLI!. Well you can also use this to create a file with the text. By using the > you populate the following file with what is before it. This will be helpful later but for now let’s just echo text into a file. So let’s Type: echo Hello CLI! > Hello.txt  (Then Press Enter) You can use other file types but I like Text or .txt for just playing.

Now I have ran dir to show you the file but let’s see the content. So use the type command.
Type: type Hello.txt (Then Press Enter)


That is all for today, but as you can see as we move further and further this will get more complex.

My Suggestion: Have a backup before you attempt anything on your PC seriously.