11.4.1.5 Lab - Work in The Windows Command Shell

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Lab - Work in the Windows Commands Shell

Introduction
In this lab, you will use CLI commands to manage files and folders in Windows.

Recommended Equipment
 A computer running Windows

Instructions
Step 1: Access the Windows command prompt.
a. Log on to a computer as a user with administrative privileges. The account ITEUser is used as the example
user account throughout this lab.
b. To access the Windows command prompt, click Start and type cmd. Select Command Prompt or
cmd.exe to continue.

Step 2: Display command help from the command prompt.


You can display command line help using the help command. For more information on a specific command, type the
command followed by /?.
a. At the command prompt, type help and press Enter. A list of commands is displayed.
b. The results from the help command are too long to display on one page so you can only readily see the last portion.
To allow you to see it one page at a time, enter the command help | more at the prompt. The more command can
paginate the results of another command when combining with | (pipe) and more.
C:\Users\ITEUser> help | more
For more information on a specific command, type HELP command-name
ASSOC Displays or modifies file extension associations.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
BCDEDIT Sets properties in boot database to control boot loading.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
-- More --
c. To see the next page, press the spacebar. What happens when you press enter?
only advances one line
d. Press q or Ctrl-C to exit after filling out the functions of the following commands:

Command Function

CD Displays the name of or changes the current directory.

 2015 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 3 www.netacad.com
Lab - Work in the Windows Commands Shell

Command Function

CHKDSK Checks a disk and displays a status report.

COPY Copies one or more files to another location.

DEL Deletes one or more files.

DIR Displays a list of files and subdirectories in a directory

DISKPART Displays or configures Disk Partition properties.

EXIT Quits the CMD.EXE program (command interpreter).

FORMAT Formats a disk for use with Windows.

GPRESULT Displays Group Policy information for machine or user.

MD Creates a directory.

TASKLIST Displays all currently running tasks including services.

RD Removes a directory.

ROBOCOPY Advanced utility to copy files and directory trees.

SHUTDOWN Allows proper local or remote shutdown of machine.

XCOPY Copies files and directory trees.

e. Type md /? at the prompt to display additional information and switches that can be used with this
command.
C:\Users\ITEUser> md /?
Creates a directory.

MKDIR [drive:]path

 2015 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 3 www.netacad.com
Lab - Work in the Windows Commands Shell

MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.


<some output omitted>

Use the information provided by help command about md.


Question:
How would you create these folders C:\Users\ITEUser\a\b\c if your current directory is C:\Users\
ITEUser?
C:\Users\ITEUser> mkdir a\b\c\d .
What command would you use to verify the creation of the nested directories?
Use DIR and CD.
f. Clear the screen using the command line.
Question:
What command did you use?
Use CLS.
g. Press F7 on the keyboard for the command history.
Question:
What is the last command that you have used? Press Esc on the keyboard to exit the dialog box.
Last command I used is CLS to clear the screen.
h. Press up arrow to display the last command used.
Question:
What is the last command?
CLS.
i. To exit the command prompt, enter exit at the prompt.

Screenshot ada di bawah!!!

 2015 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 3 www.netacad.com
Lab - Work in the Windows Commands Shell

 2015 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 3 www.netacad.com
Lab - Work in the Windows Commands Shell

 2015 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 3 www.netacad.com
Lab - Work in the Windows Commands Shell

 2015 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 3 www.netacad.com
Lab - Work in the Windows Commands Shell

 2015 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 3 www.netacad.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy