Back to Lab Listing

Lab Objective:

Learn how to use some Microsoft CLI commands.

Lab Purpose:

You will revert to the command-line tools for troubleshooting, so you need to know the most common ones.

Lab Tool:

Windows 10

Lab Topology:

Use a single PC. Note that if you use a virtual machine, you may not always be able to see some of the same options.

microsoft command line interface 1

Lab Walkthrough:

Task 1:

Use the search bar and search for ‘cmd’. You should see ‘Command Prompt’ as an option that you can select. This will take you to the Microsoft Command-Line Tool.

microsoft command line interface 12

Task 2:

Right-click the title bar and press ‘Properties’.

microsoft command line interface 13

You will then be able to adjust the font size and other settings so that the CLI tool matches your requirements.

microsoft command line interface 14

Task 3:

Type dir and press the Enter key. The command lists all files and subdirectories contained in a specific directory. One of mine is named ‘Downloads’. To navigate to that directory, use the command cd Downloads.

microsoft command line interface 15

You can see the output has changed to ‘C:\Users\paulw\Downloads>’.

Can you append/? to a command to see all available options.

microsoft command line interface 16

Issue the dir command again to see the contents of your downloads folder.

microsoft command line interface 17

You can use the GUI to confirm by checking your downloads folder.

microsoft command line interface 18

Task 4:

Right-click on your desktop, click ‘New’ and then ‘Folder’, and create a folder called ‘Fun’.

microsoft command line interface 19

Right-click and create a new text document called ‘101labs’.

Task 5:

Navigate back to the command line window on your desktop. Type ‘cd’ and press the space bar. Then drag the new folder you created into the command line window.

microsoft command line interface 110

You should see the path to the new folder appear in the command line as above.

When you press the Enter key, you will move to your directory. You can then type dir to check that your file is in the folder.

microsoft command line interface 111

Task 6:

We will move the 101labs.txt file from the current folder to the desktop using the move command.

Type move 101labs.txt C:\Users\paulw\Desktop and press the enter key. Note that you will need to replace paulw with your owner’s name. You should see that the file has moved to your desktop.

microsoft command line interface 112

Notes:

Please try out some of the other switches available with the command.

Newsletter Subscribe

Stay Informed, Stay Inspired: Subscribe for Cutting-Edge IT-Certification Insights

101 Labs Newsletter