Microsoft Command-Line Tools Quiz Flashcards
(42 cards)
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
cd = Change Directory
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 *.*
dir = Display files and folders in current DIRectory.
The asterix is a wildcard, meaning it can represent anything.
~~~
.
~~~
means “any file name”.”any file extension”
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
md = Make a Directory
mkdir = MaKe a DIRectory
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
rd = Remove Directory
rmdir = ReMove DIRectory
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:
There’s two parts, the prompt and the command.
C:\> — This is the prompt. You don't type this. It tells you three things: C: — You are currently on the C: drive. \ — You are in the root directory of the C: drive. > — This is the command-line prompt symbol, which tells you the shell is ready to accept input. D: — This is the actual command you type. It means: D: — You want to switch to the D: drive.
Which of the following command-line commands displays the name of the current computer a user is connected to?
- host
- hosts
- hostname
- localhost
hostname
hostname = Display the NAME of the computer (aka the HOST)
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
and
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
FQDN = Fully Qualified Domain Name (for example: www.Google.com)
nslookup = Name Server LOOKUP
Which command-line command in Windows lists a computer’s connections to shared resources?
- net share
- net use
- net session
- net config
net use
net use = The NETwork resources you’re USE-ing
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
tracert = TRACE the RouTe of packets traveling over the network
For a newly added storage drive, this command-line command allows you to configure it with a file system, enabling Windows to store information on the drive.
- gpart
- sfdisk
- mount
- format
format
gpart and sfdisk are Unix, not Windows.
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
move is more like cut than copy.
cp is Unix, not Windows.
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
xcopy = eXtended COPY
robocopy = ROBust COPY
cp is Unix, not Windows.
move is more like cut than copy.
copy only copies files, not directories.
Which copying utility accessible via Windows command line interface offers the widest range of options?
- xcopy
- move
- robocopy
- copy
- cp
robocopy
robocopy = ROBust COPY
robocopy > xcopy > copy
Which of the Command Prompt commands listed below allows for updating multiple Group Policy settings in MS Windows?
- net user
- gpupdate
- bcdedit
- gpresult
gpupdate
gpupdate = Group Policy UPDATE
bcdedit is for managing Boot Configuration Data (BCD) files
gpresult displays current applied group policies.
A command-line tool in Windows that displays Group Policy information for a machine or user is called:
- gpresult
- net view
- verify
- gpupdate
gpresult
gpresult displays current applied Group Policies
verify verifies whether your files are written correctly to a disk.
gpupdate updates group policies.
The following command can be used to shut down or restart a local or remote host running MS Windows.
- poweroff
- exit
- bootcfg
- shutdown
shutdown
poweroff is Unix, not Windows.
exit only exits the command line.
bootcfg configures Boot.ini settings.
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
sfc = System File Checker
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] /?
help has to come first.
man is Unix, not Windows.
info doesn’t exist.
Which of the Command Prompt commands in MS Windows launches a text-based, command-line partitioning utility?
- sfdisk
- diskutil
- gpart
- diskpart
diskpart
diskpart = Display and adjusts DISK PARTition properties
sfdisk and gpart are Unix, not Windows.
diskutil is MacOS, not Windows.
Which network command-line utility in Windows combines the features of ping and tracert?
- pathping
- netcfg
- dig
- rpcping
pathping
netcfg installs the Windows Preinstallation Environment (WinPE), a lightweight version of Windows used to deploy workstations.
dig is Unix and MacOS, not Windows.
rpcping confirms the RPC connectivity for Microsoft Exchange.
Which of the Command Prompt commands in MS Windows launches a pop-up window containing a brief summary of the installed operating system?
- winver
- msinfo32
- systeminfo
- msconfig
winver
winver = Display the VERsion of WINdows that is running
msinfo32 displays a comprehensive view of the hardware, system components, and software environment on the local computer.
systeminfo displays detailed configuration information about a computer and its operating system.
msconfig is a system utility to troubleshoot the Microsoft Windows startup process.
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 ..
cd = Change Directory
double period .. goes to parent directory.
backslash \ goes to root directory.
^ = Escape special characters (example: echo 5 ^> 3 → 5 > 3)