lesson 11 cmd
lesson 11 cmd
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
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
Which of the following Windows Command Prompt commands can be used to delete a
directory? (Select all that apply)
rd
mkd
mdir
mkdr
rkdir
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:\
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 command-line utility used for checking the reachability of a remote network host is called:
ping
tracert
dig
netstat
Which of the following command-line commands displays the name of the current computer a
user is connected to?
host
hosts
hostname
localhost
Which of the network command-line tools listed below enables obtaining an FQDN-to-IP
address mapping?
netstat
nslookup
tracert
pathping
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
Which Command Prompt command in MS Windows lists the user accounts for the computer?
net view
net session
net user
net accounts
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
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
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
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
Which copying utility accessible via Windows command line interface offers the widest range of
options?
xcopy
move
robocopy
copy
cp
Which of the Command Prompt commands listed below allows for updating multiple Group
Policy settings in MS Windows?
net user
gpupdate
bcdedit
gpresult
A command-line tool in Windows that displays Group Policy information for a machine or user
is called:
gpresult
net view
verify
gpupdate
The following command can be used to shut down or restart a local or remote host running MS
Windows.
poweroff
exit
bootcfg
shutdown
Which command-line commands in Windows can be used to display help information related to
a specific utility?
[command name] help
man [command name]
[command name] info
help [command name]
[command name] /?
Which network command-line utility in Windows combines the features of ping and tracert?
pathping
netcfg
dig
rpcping
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 ..
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 \
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
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
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
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
Which of the following netstat parameters displays addresses and port numbers in numerical
form?
-b
-n
-q
-r
Which of the command-line tools listed below can be used for troubleshooting DNS-related
problems?
arp
nslookup
tracert
pathping
Which copy command switch in Windows verifies that the new files are written correctly?
/-y
/v
/y
/a
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
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
Which shutdown command switch forces full system shutdown and restart of a Windows host?
-s -r
/r
/s r
-i
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
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
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