Lab - Common Windows CLI Commands

Similar documents
Lab Working with Linux Command Line

Lab - System Restore in Windows 7 and Vista

Disk Operating System

Chapter 11: Basic Operating Systems

Lab - Configure Users and Groups in Windows

Internal Commands COPY and TYPE

Lab - Data Migration in Windows

Lab - Remote Assistance in Windows

Lab - Working with ios

COURSE OUTLINE. Division of Business and Technology NET 239. WAN Data Communications. Credits: 3 Class Hours: 2 Lab Hours: 2

About shells and command lines

Lab - Configure Data Backup and Recovery in Windows 7 and Vista

Introduction. File System. Note. Achtung!

False because it for ASCII not EBCDIC Dir /O:order ex. Dir/O:n False because it s a valid command True False because there are lines

HELP Use the help command to list all the following supported commands:

Lab - Working with Android

Lab - System Restore in Windows 8

Lab - Create a Partition in Windows 8

Description of the Windows XP Recovery Console for advanced users

Processes. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms:

C:\> command prompt DOS prompt cursor

Basic DOS Commands MCQ

Don t jump ahead, there is more you need to do first in order for this to work properly.

Lab - Manage Virtual Memory in Windows 7 and Vista

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Lab - Share a Printer in Windows 7 and Vista

11/10/2011. Directory Structures (continued)

Lecture 2 DOS & Windows file commands by: lecturer Raya N.Ismail

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME

Lab - Share Resources in Windows

Lab - Configure Data Backup and Recovery in Windows 8

Chapter 8 Managing Your Files

Lab - Create User Accounts in Windows 8

Introduction to Linux

GET TO KNOW YOUR COMMAND PROMPT

DATA 301 Introduction to Data Analytics Command Line. Dr. Ramon Lawrence University of British Columbia Okanagan

Why learn the Command Line? The command line is the text interface to the computer. DATA 301 Introduction to Data Analytics Command Line

Unit 10. Linux Operating System

NET323 D: NETWORKS PROTOCOLS

FireAMP Connector for Mac Diagnostic Data Collection

What is software? Functional view. Functional view. System requirements of a software. Versions Free version: This is the free version

Session 04 Introduction to Software

Lab - Connect to a Router for the First Time

Managing the Startup Folder in Windows 8

User's Guide and Reference

IT Essentials v6.0 Windows 10 Software Labs

5.4.8 Optional Lab: Managing System Files with Built-in Utilities in Windows Vista

MySQL for Windows. Tak Auyeung. September 7, 2003

Command Line Interface The basics

In this lab you will explore the Windows Vista Firewall and configure some advanced settings.

Instructions for MX350 Firmware Upload

Chapter 2: Configure a Network Operating System. Every computer requires an operating system to function, including computerbased

CSCI 2132 Software Development. Lecture 4: Files and Directories

NET323 D: NETWORKS PROTOCOLS

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]

Lab - Configure the Firewall in Windows 7 and Vista

ProductCenter Database Merge Utility Installation Guide

Recovering Windows Server 2003 on HP Integrity Servers

Packet Tracer - Navigating the IOS

The Command Shell. Fundamentals of Computer Science

Fundamental 2. Lec#04. Shugofa Hassani

IT ESSENTIALS V. 4.1 Module 5 Fundamental Operating Systems

Your partner for Success. CCIE Collaboration Lab Access Guide V1.1

Lab - Install Windows 7 or Vista

CSE 390a Lecture 1. introduction to Linux/Unix environment

Conventions in this tutorial

Command line and batch files Molekular Phylogenetics Practical

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016

COMP 110/401 WINDOWS COMMAND INTERPRETER. Instructor: Prasun Dewan (FB 150,

A Guide to Installing OLI Software

IntroductIon to dos. 2.1 IntroductIon. 2.2 SettIng up dos

PostMaster Enterprise v8.xx Setup Guide Windows

Lab - Task Manager in Windows 7 and Vista

Unit 13. Linux Operating System Debugging Programs

About Element Manager

Lab: Supplying Inputs to Programs

Lab 2A> ADDING USERS in Linux

For correct operation of the AutoLogon feature when using the Georgia SoftWorks SSH2/Telnet Client two steps must occur.

Lab - Monitor and Manage System Resources in Windows 7 and Vista

Introduction to lab assignments with GNS3

The City School PECHS Junior Boys 1 st Term

FmPro Migrator. FileMaker to FileMaker 7 Quickstart Guide. .com Solutions Inc. Overview. Step 1.

Using the Command-Line Interface

King Fahd University of Petroleum & Minerals. Configuration of Routers and Establishing Routed Networks

POWER WORLD LAB MANUAL

CSE 391 Lecture 1. introduction to Linux/Unix environment

Linux Bootcamp Fall 2015

Vendio Stores WebDAV Setup & Access

Disk Operating System

Folders Projects, Folders and Menus. Table of Contents. 1.0 Folder Types. 2.0 Folder Menu Commands

UNIT 9 Introduction to Linux and Ubuntu

All Microsoft Dos Commands

Introduction: What is Unix?

8.9.2 Lab: Configure an Ethernet NIC to use DHCP in Windows Vista

CS370 Operating Systems

Cisco recommends that you have knowledge of FireSIGHT Management Center, Sourcefire User Agent, and Active Directory.

Open a command prompt window and change to the directory containing the file just downloaded. Run this command:

Documentation on File Management for website

CS 143A. Principles of Operating Systems. Instructor : Prof. Anton Burtsev

Using the Command-Line Interface

Transcription:

Introduction In this lab, you will use CLI commands to manage files and folders in Windows. Recommended Equipment A computer running Windows 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 in Windows 8, navigate to the Start screen and type Command Prompt. Click Command Prompt. In Windows 7, click Start and type Command Prompt in the Search programs and files field. Click Command Prompt to continue. In Windows Vista, click Start and type Command Prompt in the Start Search field. Click Command Prompt 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. 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 9

Using the information displayed by the help command, explain the functions of the following commands: Command Function CD CHKDSK COPY DEL DIR DISKPART EXIT FORMAT GPRESULT MD TASKLIST RD ROBOCOPY SHUTDOWN XCOPY 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 9

b. Type md /? at the prompt to display additional information and switches that can be used with this command. Step 3: Create and change directories. In this step, you will use the change directory (cd), make directory (md), and directory (dir) commands. Note: A directory is another word for folder. Directory and folder are used interchangeably throughout this lab. a. Type cd at the command prompt. What is the current directory? b. Type dir at the command prompt to list the files and folders that are in the current folder. c. In the current directory, use the md command to create three new folders: ITEfolder1, ITEfolder2, and ITEfolder3. Type md ITEfolder1 and press Enter. Create ITEfolder2 and ITEfolder3. d. Type dir to verify the folders have been created. 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 9

e. Type cd ITEfolder3 at the command prompt and press Enter. Which folder are you in now? f. Within the ITEfolder3 folder, create a folder named ITEfolder4. Use the dir command to verify the folder creation. g. Type cd.. to change the current directory. Each.. is a shortcut to move up one level in the directory tree. After issuing the cd.. command, what is your directory now? What would be the current directory if you issue this command at C:\Users\ITEfolder3? Step 4: Create text files. a. Navigate to the C:\Users\ITEUser\ITEfolder1 directory. Type cd ITEfolder1 at the prompt. b. Type echo This is doc1.txt > doc1.txt at the command prompt. The echo command is used to display a message at the command prompt. The > is used to redirect the message from the screen to a file. For example, in the first line, the message This is doc1.txt is redirected into a new file named doc1.txt. Use the echo command and > redirect to create these files: doc2.txt, file1.txt, and file2.txt. c. Use the dir command to verify the files are in the ITEfolder1 folder. Step 5: Copy, delete, and move files. a. At the command prompt, type move doc2.txt C:\Users\ITEUser\ITEfolder2 to move the file doc2.txt to the C:\Users\ITEUser\ITEfolder2 directory. 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 9

b. Type dir at the prompt to verify that doc2.txt is no longer in the current directory. c. Type cd C:\Users\ITEUser\ITEfolder2 to change the directory to ITEfolder2. Type dir at the prompt to verify doc2.txt has been moved. d. Type copy doc2.txt doc2_copy.txt to create a copy of doc2.txt. Type dir at the prompt to verify a copy of the file has been created. e. Now use the move command to move doc2_copy.txt to ITEfolder1. Type move doc2_copy.txt..\itefolder1. f. A copy of doc2.txt can be created and renamed with the copy command. Type copy doc2.txt..\itefolder1\doc2_new.txt at the prompt. 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 9

g. Type dir..\itefolder1 to view the content in ITEfolder1 without leaving the current directory. h. Change the current directory to ITEfolder1. Type cd..\itefolder1 at the prompt. i. Move file1.txt and file2.txt into ITEfolder3. To move all the files that contain the word file into ITEfolder3 with one command, use a wildcard (*) character to represent one or more characters. Type move file*.txt..\itefolder3. j. Now delete doc2_copy.txt from the ITEfolder1 directory. Type del doc2_copy.txt. Use the dir command to verify the file deletion. Step 6: Use the xcopy command. In this step, the xcopy command is used to copy all the content in a directory and delete the empty directory. a. Verify the content of ITEfolder3. Type dir..\itefolder3. b. Verify the content in ITEfolder1. Move all the files in this folder to ITEfolder2. Type move doc*.txt..\itefolder2 to move the files. 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 9

c. Type xcopy..\itefolder3. at the prompt to copy the content of ITEfolder3 to ITEfolder1. Note the. at the end of the command. It is a shortcut for the current directory. d. At the prompt, type dir to display the content of ITEfolder1. Only the files in the ITEfolder3 were copied into ITEfolder1. The directory ITEfolder4 was not copied into ITEfolder3. e. Use help xcopy to determine which switch would allow the xcopy command to copy all the files and directories. f. Because ITEfolder4 is an empty folder, /E is needed to copy all the content of ITEfolder3 and the empty subfolder. Type xcopy /E..\ITEfolder3. at the prompt to copy the files. When prompted, type a to allow overwriting the existing files. g. Verify the ITEfolder4 was also copied in ITEfolder1. 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 9

Step 7: Delete directories. In this step, you will delete an empty and a non-empty directory using the rd command. a. Navigate to the C:\Users\ITEUser\ITEfolder3 directory. b. Use the rd ITEfolder4 to delete the empty directory. Verify the directory removal using the dir command. c. Navigate to C:\Users\ITEUser folder. d. Use the rd ITEfolder2 to delete the non-empty directory. The message indicates that the directory is not empty and cannot be deleted. e. Use rd /? command to determine the switch that allows the deletion of a non-empty directory. f. Type rd /S ITEfolder2 to delete this folder. When prompted, type y to delete the directory. Use dir to verify that ITEfolder2 was deleted. g. Type exit to close the command prompt window. 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 9

Reflection What are the advantages of using CLI vs. GUI? 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 9