Exam Compass - Microsoft Command-Line Tools Quiz Flashcards
Which of the answers listed below refer to Windows command-line commands used for directory traversal? (Select 2 answers)
cd
pwd
dir
chdir
path
cd
chdir
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
dir
dir .
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
md
mkdir
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
rd
rmdir
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:\
C:>D:
What is the name of a Windows Command Prompt utility that can be used to display TCP/IP configuration settings?
ifconfig
nslookup
ipconfig
netstat
ipconfig
A command-line utility used for checking the reachability of a remote network host is called:
ping
tracert
dig
netstat
ping
Which of the following command-line commands displays the name of the current computer a user is connected to?
host
hosts
hostname
localhost
hostname
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
Displaying active TCP/IP connections
Displaying network protocol statistics
Which of the network command-line tools listed below enables obtaining an FQDN-to-IP address mapping?
netstat
nslookup
tracert
pathping
nslookup
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
chkdsk
Which command-line command in Windows lists a computer’s connections to shared resources?
net share
net use
net session
net config
net use
Which Command Prompt command in MS Windows lists the user accounts for the computer?
net view
net session
net user
net accounts
net user
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
tracert
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
format
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
copy
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
xcopy
robocopy
Which copying utility accessible via Windows command line interface offers the widest range of options?
xcopy
move
robocopy
copy
cp
robocopy
Which of the Command Prompt commands listed below allows for updating multiple Group Policy settings in MS Windows?
net user
gpupdate
bcdedit
gpresult
gpupdate
A command-line tool in Windows that displays Group Policy information for a machine or user is called:
gpresult
net view
verify
gpupdate
gpresult
The following command can be used to shut down or restart a local or remote host running MS Windows.
poweroff
exit
bootcfg
shutdown
shutdown
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
Scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions
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] /?
help [command name]
[command name] /?
Which of the Command Prompt commands in MS Windows launches a text-based, command-line partitioning utility?
sfdisk
diskutil
gpart
diskpart
diskpart
Which network command-line utility in Windows combines the features of ping and tracert?
pathping
netcfg
dig
rpcping
pathping
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
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 ..
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 \
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
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
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
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
Which of the following netstat parameters displays addresses and port numbers in numerical form?
-b
-n
-q
-r
-n
Which of the command-line tools listed below can be used for troubleshooting DNS-related problems?
arp
nslookup
tracert
pathping
nslookup
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
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
Which copy command switch in Windows verifies that the new files are written correctly?
/-y
/v
/y
/a
/v
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
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
Which shutdown command switch forces full system shutdown and restart of a Windows host?
-s -r
/r
/s r
-i
/r
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
Which shutdown command switch enables aborting a system shutdown?
/a
/q
/e
/p
/a
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
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
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