Exam Compass - Microsoft Command-Line Tools Quiz Flashcards

1
Q

Which of the answers listed below refer to Windows command-line commands used for directory traversal? (Select 2 answers)
cd
pwd
dir
chdir
path

A

cd
chdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following Windows Command Prompt commands can be used to list all directory’s files and subdirectories contained in the current directory? (Select all that apply)
dir
dir /?
dir .
dir /all
dir /list

A

dir
dir .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the answers listed below refer to Windows command-line commands used to create a directory or subdirectory? (Select 2 answers)
md
mkd
mdir
mkdr
mkdir

A

md
mkdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following Windows Command Prompt commands can be used to delete a directory? (Select all that apply)
rd
del
rmdir
dir /d
popd

A

rd
rmdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the Windows command-line commands listed below changes the drive from C: to D:?
C:>D:
C:>[D:]
C:>D:\
C:>cd D:\

A

C:>D:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the name of a Windows Command Prompt utility that can be used to display TCP/IP configuration settings?
ifconfig
nslookup
ipconfig
netstat

A

ipconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A command-line utility used for checking the reachability of a remote network host is called:
ping
tracert
dig
netstat

A

ping

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following command-line commands displays the name of the current computer a user is connected to?
host
hosts
hostname
localhost

A

hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Netstat is a command-line utility used for: (Select 2 answers)
Displaying active TCP/IP connections
Testing the reachability of a remote host
Displaying intermediary points on the packet route
Viewing the TCP/IP configuration details
Displaying network protocol statistics

A

Displaying active TCP/IP connections

Displaying network protocol statistics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the network command-line tools listed below enables obtaining an FQDN-to-IP address mapping?
netstat
nslookup
tracert
pathping

A

nslookup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following Command Prompt utilities in MS Windows allows to verify the file system integrity and fix logical file system errors?
grep
chkdsk
sfc
dism

A

chkdsk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which command-line command in Windows lists a computer’s connections to shared resources?
net share
net use
net session
net config

A

net use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which Command Prompt command in MS Windows lists the user accounts for the computer?
net view
net session
net user
net accounts

A

net user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A network command-line utility in MS Windows that tracks and displays the route taken by IP packets on their way to another host is known as:
ping
traceroute
nslookup
tracert

A

tracert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

For a newly added storage drive, this command-line command allows to configure it with a file system enabling Windows to store information on the drive.
gpart
sfdisk
mount
format

A

format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following Command Prompt commands in MS Windows can be used to copy one or more files from one location to another?
copy
move
cp
pushd

A

copy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which Microsoft Windows command-line command(s) allow(s) for copying multiple files and directories, including subdirectories? (Select all that apply)
cp
xcopy
move
robocopy
copy

A

xcopy
robocopy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which copying utility accessible via Windows command line interface offers the widest range of options?
xcopy
move
robocopy
copy
cp

A

robocopy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Which of the Command Prompt commands listed below allows for updating multiple Group Policy settings in MS Windows?
net user
gpupdate
bcdedit
gpresult

20
Q

A command-line tool in Windows that displays Group Policy information for a machine or user is called:
gpresult
net view
verify
gpupdate

21
Q

The following command can be used to shut down or restart a local or remote host running MS Windows.
poweroff
exit
bootcfg
shutdown

22
Q

The sfc Command Prompt utility in MS Windows:
Encrypts files and folders
Scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions
Displays information about system hardware and software configuration
Checks a disk and displays a status report

A

Scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions

23
Q

Which command-line commands in Windows can be used to display help information related to a specific utility? (Select 2 answers)
[command name] help
man [command name]
[command name] info
help [command name]
[command name] /?

A

help [command name]
[command name] /?

24
Q

Which of the Command Prompt commands in MS Windows launches a text-based, command-line partitioning utility?
sfdisk
diskutil
gpart
diskpart

25
Which network command-line utility in Windows combines the features of ping and tracert? pathping netcfg dig rpcping
pathping
26
Which of the Command Prompt commands in MS Windows launches a pop-up window containing brief summary of the installed operating system? winver msinfo32 systeminfo msconfig
winver
27
Which Command Prompt commands in MS Windows move the command-line prompt one folder up in the directory tree (set the prompt at the parent folder of the current folder)? (Select 2 answers) cd \ cd /^ cd .. chdir \ chdir /^ chdir ..
cd .. chdir ..
28
Which of the Windows command-line commands listed below change the current directory to the root directory? (Select 2 answers) cd .. cd /r cd \ chdir .. chdir /r chdir \
cd \ chdir \
29
Which of the following answers refers to an ipconfig parameter used for displaying the full TCP/IP configuration information for all adapters? -a /? /all /-a
/all
30
Which of the Command Prompt commands listed below are used for resetting the DHCP configuration settings for all adapters in MS Windows? (Select 2 answers) ipconfig /disable ifconfig eth0 down ipconfig /release ipconfig /enable ifconfig eth0 up ipconfig /renew
ipconfig /release ipconfig /renew
31
Which netstat parameter allows to display all active TCP connections and the TCP/UDP ports on which the computer is listening? -a -p -e -r
-a
32
The -b netstat parameter in Microsoft Windows allows to display the name of an application involved in creating each connection or listening port. True False
True
33
Which of the following netstat parameters displays addresses and port numbers in numerical form? -b -n -q -r
-n
34
Which of the command-line tools listed below can be used for troubleshooting DNS-related problems? arp nslookup tracert pathping
nslookup
35
The /f switch of the chkdsk Command Prompt utility in MS Windows: Locates bad sectors and recovers readable information Fixes errors on the disk Displays cleanup messages Displays the full path and name of every file on the disk
Fixes errors on the disk
36
The /r switch of the chkdsk command-line utility in Windows: (Select 2 answers) Displays cleanup messages Locates bad sectors and recovers readable information Uses more system resource to perform a scan as fast as possible Displays the full path and name of every file on the disk Fixes errors on the disk
Locates bad sectors and recovers readable information Fixes errors on the disk
37
Which copy command switch in Windows verifies that the new files are written correctly? /-y /v /y /a
/v
38
Which of the copy command switches suppresses the confirmation prompt displayed when Windows is about to overwrite the contents of an existing file? /v /y /a /-y
/y
39
Which of the following is the correct command for setting the time-out period of 30 seconds before powering off a Windows host? shutdown /r /t 30 shutdown /s /30 shutdown /s /t 30 shutdown /r /30
shutdown /s /t 30
40
Which shutdown command switch forces full system shutdown and restart of a Windows host? -s -r /r /s r -i
/r
41
Which of the command-line commands listed below enables a full system shutdown and restart of an MS Windows host after a time-out period of two minutes? shutdown /s /120 shutdown /r /t 120 shutdown /r /120 shutdown /s /t 120
shutdown /r /t 120
42
Which shutdown command switch enables aborting a system shutdown? /a /q /e /p
/a
43
Which sfc switch enables a file check that scans integrity of all protected system files and attempts to repair corrupted files? /scannow /verifyonly /scanfile /verifyfile
/scannow
44
Used without any parameters, the help command in MS Windows displays a list of available system commands along with a brief description of each command. True False
True
45
The "Run as administrator" option in MS Windows available after right-clicking on the Command Prompt application icon enables execution of shell commands reserved for system administrator. True False
True