Core 2: Microsoft Command-Line Tools Flashcards
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 2 answers)
dir dir /? dir *.* dir /all dir /list
dir
dir .
Which of the command-line commands listed below is used for directory traversal?
cd
dir
ps
dig
cd
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)?
cd \
cd /up
cd +
cd ..
cd ..
Which of the following commands in Windows Command Prompt changes the current directory to the root directory?
cd \
dir /root
cd ..
chdir /r
cd \
What is the name of an MS Windows command-line utility that can be used to display TCP/IP configuration settings?
ifconfig
net use
ipconfig
netstat
ipconfig
Which of the answers listed below refers to an ipconfig command parameter used for displaying the full TCP/IP configuration information for all adapters?
-a
/?
/all
/a
/all
Which ipconfig parameter allows to view the physical address of a Network Interface Card (NIC)?
-S srcaddr
/all
-i address
eth_addr
/all
Which of the following command-line commands in MS Windows are used for resetting the DHCP configuration settings for all adapters? (Select 2 answers)
ipconfig /down
ipconfig /release
ipconfig /up
ipconfig /renew
ipconfig /release
ipconfig /up
A command-line utility used for checking the reachability of a remote network host is known as:
ping
tracert
dig
netstat
ping
A network command-line utility in MS Windows that tracks and displays the route taken by IPv4 packets on their way to another host is called:
ping
traceroute
nslookup
tracert
tracert
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 netstat parameter allows to display all connections and listening ports?
- 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 or False?
True
Which of the following netstat parameters displays addresses and port numbers in numerical form?
- b
- n
- q
- r
-n
Which of the following CLI tools can be used for troubleshooting DNS-related problems?
arp
nslookup
tracert
pathping
nslookup
The following command can be used to shut down or restart a local or remote host running MS Windows.
exit
shutdown
reboot
taskkill
shutdown
Which of the following is the correct command for setting the time-out period of 60 seconds before powering off a Windows host?
shutdown /r /t 60
shutdown /s /60
shutdown /s /t 60
shutdown /r /60
shutdown /s /t 60
Which shutdown command switch in Microsoft Windows Command Prompt forces full system shutdown and restart of a Windows host?
-s -r
/r
/s r
-i
/r
Which of the following command-line commands 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
A Windows command-line tool used for preparing and modifying contents of Windows images is known as:
format
robocopy
dism
gpupdate
dism
The sfc command-line 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 sfc switch enables a type of file check that scans integrity of all protected system files and repairs corrupted files when possible?
/scannow
/verifyonly
/scanfile
/verifyfile
/scannow
Which of the following is a Windows, OS/2 and DOS command-line tool used for checking the file system and status of the system’s hard drives?
grep
chkdsk
sfc
dism
chkdsk
The /f switch of the chkdsk command-line 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 of the following commands in Windows Command Prompt launches a text-based command-line partitioning utility?
format
chkdsk
defrag
diskpart
diskpart
Which of the following command-line commands in Windows displays a list of currently running processes on a local or remote host?
iexplore
tasklist
services.msc
netstat
tasklist
Provided that the process ID of notepad.exe obtained with the tasklist command is 1230, which of the following answers lists the correct syntax for a Windows Command Prompt taskkill command that would allow to close this application?
taskkill /id 1230
taskkill –im 1230
taskkill /pid 1230
taskkill –id 1230
taskkill /pid 1230
Which of the answers listed below refers to the correct syntax for a Windows Command Prompt taskkill command that would allow to close notepad.exe by providing its imagename?
taskkill /pid notepad
taskkill /im notepad.exe
taskkill /id notepad.exe
taskkill /img notepad
taskkill /im notepad.exe
Which of the command-line commands listed below allows for updating multiple Group Policy settings in MS Windows?
convert
gpupdate
bcdedit
gpresult
gpupdate
A command-line command in MS Windows that displays Group Policy information for a machine or user is known as:
nbtstat
gpresult
verify
gpupdate
gpresult
For a newly added hard drive, this command allows to configure it with a file system so that Windows can store information on the disk.
mstsc
defrag
nbtstat
format
format
The following command-line command can be used to copy one or more files from one location to another.
sfc
copy
move
pushd
copy
Which copy command switch 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 Microsoft Windows command-line commands allow for copying multiple files or entire directory trees from one directory to another and for copying files across a network? (Select 2 answers)
xcopy pushd shift robocopy move
xcopy
robocopy
Which of the following Command Prompt commands in Windows is used for listing a computer’s connections to shared resources?
net share
net use
net session
net config
net use
Which of the MS Windows command-line commands lists the user accounts for the computer?
net view
net session
net user
net accounts
net user
Which of the following commands in Windows can be used to display help information related to a specific command-line utility? (Select 2 answers)
[command name] help man [command name] [command name] info help [command name] [command name] /?
help [command name]
[command name] /?
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 or False?
True
The “Run as administrator” option in MS Windows available after right-clicking on the Command Prompt application icon allows for execution of shell commands reserved for a system administrator.
True or False?
True