MS CMD line tools Flashcards

1
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? [2]

A

‘dir’
‘dir .

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

Which of the command-line commands listed below is used for directory traversal?

A

‘cd’

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

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)?

A

‘cd ..’

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

Which of the following commands in Windows Command Prompt changes the current directory to the root directory?

A

‘cd '

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

What is the name of an MS Windows command-line utility that can be used to display TCP/IP configuration settings?

A

ipconfig

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

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

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

Which ipconfig parameter allows to view the physical address of a Network Interface Card (NIC)?

A

/all

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

Which of the following command-line commands in MS Windows are used for resetting the DHCP configuration settings for all adapters? [2]

A

‘ipconfig /release’
‘ipconfig /renew’

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

A command-line utility used for checking the reachability of a remote network host is known as:

A

ping

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

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:

A

tracert

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

Netstat is a command-line utility used for[II]:

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
12
Q

Which netstat parameter allows to display all connections and listening ports?

A

‘-a’

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

What netstat parameter in Microsoft Windows allows to display the name of an application involved in creating each connection or listening port.

A

netstat-b

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

Which of the following netstat parameters displays addresses and port numbers in numerical form?

A

‘-n’

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

Which of the following CLI tools can be used for troubleshooting DNS-related problems?

A

nslookup

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

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

A

shutdown

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

Which of the following is the correct command for setting the time-out period of 60 seconds before powering off a Windows host?

A

‘shutdown /s /t 60’

18
Q

Which shutdown command switch in Microsoft Windows Command Prompt forces full system shutdown and restart of a Windows host?

A

‘/r’

19
Q

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?

A

‘shutdown /r /t 120’

20
Q

Which shutdown command switch enables aborting a system shutdown?

A

‘/a’

21
Q

A Windows command-line tool used for preparing and modifying contents of Windows images is known as:

A

dism

22
Q

The sfc command-line utility in MS Windows:

A

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

23
Q

Which sfc switch enables a type of file check that scans integrity of all protected system files and repairs corrupted files when possible?

A

‘/scannow’

24
Q

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?

A

chkdsk

25
Q

The /f switch of the chkdsk command-line utility in MS Windows:

A

Fixes errors on the disk

26
Q

The /r switch of the chkdsk command-line utility in Windows [2]

A
  • Locates bad sectors and recovers readable information
  • Fixes errors on the disk
27
Q

Which of the following commands in Windows Command Prompt launches a text-based command-line partitioning utility?

A

diskpart

28
Q

Which of the following command-line commands in Windows displays a list of currently running processes on a local or remote host?

A

tasklist

29
Q

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?

A

‘taskkill /pid 1230’

30
Q

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?

A

‘taskkill /im notepad.exe’

31
Q

Which of the command-line commands listed below allows for updating multiple Group Policy settings in MS Windows?

A

gpupdate

32
Q

A command-line command in MS Windows that displays Group Policy information for a machine or user is known as:

A

gpresult

33
Q

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.

A

format

34
Q

The following command-line command can be used to copy one or more files from one location to another.

A

copy

35
Q

Which copy command switch verifies that the new files are written correctly?

A

‘/v’

36
Q

Which of the copy command switches suppresses the confirmation prompt displayed when Windows is about to overwrite the contents of an existing file?

A

‘/y’

37
Q

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? [2]

A

‘xcopy’
‘robocopy’

38
Q

Which of the following Command Prompt commands in Windows is used for listing a computer’s connections to shared resources?

A

‘net use’

39
Q

Which of the MS Windows command-line commands lists the user accounts for the computer?

A

‘net user’

40
Q

Which of the following commands in Windows can be used to display help information related to a specific command-line utility? [2]

A

’ help [command name] ‘
‘[command name] /?’

41
Q

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.

A

true

42
Q

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.

A

true