Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How would you view the files in the C:\\windows directory? Use relative referenc

ID: 3877811 • Letter: H

Question

How would you view the files in the C:windows directory? Use relative references.

How would you view only the directories in the C:windows directory? Use relative references. Hint: Use a switch.

How would you view only the .com files in the C:windowssystem32 directory? Use relative references.

How would you create a directory called JUNK at the root. Use relative references.

How would you change to the JUNK directory? Use relative references.

How would you copy all the .com file in the C:windowssystem32 directory to the JUNK directory? Use absolute references.

How would you rename a file? Give an example with one of the .com files in the JUNK directory. Use absolute references.

How would you delete a file. Give an example with one of the .com files in the JUNK directory. Use absolute references.

How would you delete all the .com files. Use absolute references.

How would you delete all the files in the JUNK directory? Use absolute references.

Explain (not define) the syntax of most MS-DOS commands, including switches. Give example and explain what it does.

Explain (not define) the purpose of redirection. Give example and explain what it does.

Explain (not define) the purpose of pipes. Give example and explain what it does.

14. Key idea to share with a non-technical person and explains its importance about the basic MS-DOS commands. And give a concrete example and explain what it does in non-technical terms.

Explanation / Answer

Answers-

How would you view the files in the C:windows directory? Use relative references.

Ans- Dir command will display the files in a directory.

Command- dir "../../windows"

How would you view only the directories in the C:windows directory? Use relative references. Hint: Use a switch.

Ans- For viewing only the directory /d parameter will be used with dir command.

Command- dir "../../Windows"/b /ad

How would you view only the .com files in the C:windowssystem32 directory? Use relative references.

Ans- For viewing the files with specified extension *. wildcard will be used.

Command- dir C:WindowsSystem32 *.com /b /a-d

How would you create a directory called JUNK at the root. Use relative references.

Ans- MKDIR command is used to create a directory.

Command- MKDIR C:JUNK

How would you change to the JUNK directory? Use relative references.

Ans- CD command is used to change the path of a file or directory

Command- CD ./JUNK

How would you copy all the .com file in the C:windowssystem32 directory to the JUNK directory? Use absolute references.

Ans- Copy command is used to copy a file from one location to another.

Command- copy C:WindowsSystem32 *.com > C:JUNK

How would you rename a file? Give an example with one of the .com files in the JUNK directory. Use absolute references.

Ans- rename command is used to rename a file in a particular location.

Command- rename C:JUNKmy.com C:JUNK abs.com

How would you delete a file. Give an example with one of the .com files in the JUNK directory. Use absolute references.

Ans- del command is used to delete a file.

Command- del C:JUNKbs.com

How would you delete all the .com files. Use absolute references.

Command- del C:JUNK *.com

How would you delete all the files in the JUNK directory? Use absolute references.

Ans- rm command is used to delete all the files from a specified directory.

Command- rm C:JUNK

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote