wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Command Line Tools

Total questions: 19

Worksheet time: 20mins

Name
Class
Date
1.
1. Which command will open the command prompt from windows environment?
a)
Edit
b)
CMD
c)
Prompt
d)
commando
2.
Which command is used to make a new folder "test"  in the command line?
a)
MF test 
b)
MD test
c)
NF test
d)
test MD
3.
Which command shows the contents of the current working directory?
a)
dir
b)
direcotry 
c)
RD
d)
pwd
4.
What command can you use to delete a folder from the command prompt?
a)
MD
b)
CD
c)
RD 
d)
DF
5.
What can you do with the copy command that you can’t do with the xcopy command?
a)
Nothing. The xcopy command can do everything that the copy command can do.
b)
You can copy entire subdirectories.
c)
You can suppress prompts
d)
You can use wildcards.
6.
The ATTRIB command is used to
a)
list and manipulate attributes assigned to files and folders.
b)
list and manipulate attributes assigned to files only
c)
list and manipulate attributes assigned to folders only.
d)
list and manipulate attributes assigned to system files and folders.
7.
Using the command
" dir d* "
 will display 
a)
List all files that start with the letter "d"
b)
List all the directories starting with the letter "d"
c)
List all hidden files with the letter "d"
d)
List all system files with the letter "d"
8.
What does the command
" attrib +h myfile.txt "
 do?
a)
Unhides a file called myfile.txt
b)
Hides a file called myfile.txt 
c)
Sets the the hidden attribute on all files names myfile.txt
d)
Sets the hidden attribute on all text files in that directory. 
9.
When the archive attribute is set it means
a)
It indicates the file has not been archived or has been modified since the last archive.
b)
It indicates a file has been archived (or backed up).
c)
It indicates whether the file is included in the index.
d)
It indicates the file has been hidden in the index. 
10.
The command shown in the image will 
a)
Change the  working directory to the D:\ folder
b)
Select a file named D:\ 
c)
Change the working directory to the D:\ drive
d)
Open the first folder in the D:\ drive
11.
The difference between the robocopy and the xcopy command is 
a)
The xcopy command will copy all files, folders and subdirectories as well as metadata.
b)
The robocopy command will copy all files, folders and subdirectories as well as metadata.
c)
The xcopy command is more powerful than the robocopy command 
d)
The xcopy command copies files twice as fast as the robocopy command. 
12.
What will the command 
ipconfig /all > c:\scripts\MyConfig.txt.
do?
a)
Output the information of the Ipconfig /all command to a text file called Myconfig.txt
b)
Output the information of the Ipconfig /all command to a a folder called MyConfig.txt
c)
Output the information of the Ipconfig /all command to a the C drive
d)
Elevate the ipconfig /all command to run as administrator using script files from the MyConfig.txt file 
13.

Which of the command-line commands listed below is used for directory traversal?

a)

CD

b)

DIR

c)

PD

d)

dig

14.

Which parameter of the cd command in Windows moves the command-line prompt one folder up in the directory tree (sets the prompt at the parent folder of the current folder)?

a)

cd \

b)

cd..

c)

cd+

d)

cd /?

15.

What is the name of an MS Windows command-line utility that can be used to display TCP/IP configuration settings?

a)

ifconfig

b)

net use

c)

ipconfig

d)

netstat

16.

What is the CHKDSK command used for?

4 lines
17.

What happens when the SFC command is run on a windows computer?

4 lines
18.

Why would a Technician use the DISKPART command?

4 lines
19.

What is the difference between the COPY and XCOPY commands?

4 lines