6.1.5.4 Lab - Common Windows CLI Commands.docx

J use the dir command to verify the files are in the

  • No School
  • AA 1
  • 9

This preview shows page 4 - 8 out of 9 pages.

j. Use the dir command to verify the files are in the ITEfolder1 folder. © 2019 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 9
Image of page 4

Subscribe to view the full document.

Lab - Common Windows CLI Commands Step 4: 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. 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 . © 2019 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 9
Image of page 5
Lab - Common Windows CLI Commands 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. 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 5: 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. © 2019 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 9
Image of page 6

Subscribe to view the full document.

Lab - Common Windows CLI Commands 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.
Image of page 7
Image of page 8
  • Fall '19
  • command prompt

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern