Microsoft Command-Line Tools Flashcards

1
Q

What are the 2 command used for each of the following:

  • Directory traversal
  • LIsting ALL Directory files and sub directories
A

Traversal

  • CD
  • ChDir

Listing Dir

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

What are the 2 command used for each of the following:

  • Creating a new Directory
  • Deleting a Directory
    (Provide both names)
A

Creating

  • md
  • mkdir

Deleting

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

What are 2 reasons the command-line utility Netstat is used for

A
  • Displaying TCP/IP Connections
  • Displaying network protocol statistics
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If you wanted to obtain an FQDN-to-IP address mapping, what command-line tool would you use?

A

nslookup

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

What Command Prompt utility allows you to verify the file system integrity and fix logical file system errors on a disk?

A

chkdsk

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

Describe what the commands below display:

  • net use
  • net share
A
  • Current connections TO shared resources
  • Shared Resources FROM the computer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe what the commands below display:

  • net user
  • net accounts
A
  • Lists user accounts for the computer
  • Lists Account Policies for the computer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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:

A

tracert

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

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

A

format

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

copy command

  • What is it used for?
  • What does the “/v” switch do?
  • What does the “/y” switch do?
A
  • Used to copy one or more files from one location to another
  • Verifies that the new files are written correctly
  • Suppresses the confirmation prompt about to overwrite existing file?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are 2 commands that allows for copying multiple files and directories, including subdirectories?
(Which offers more options?)

A
  • xcopy
  • robocopy (more options)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the commands for the following:

  • Updating multiple Group Policy settings in MS Windows
  • Display Group Policy Information for machine/user
A
  • gpupdate
  • gpresult
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

shutdown command

What are the following switches used for?
* /s
* /r
* /s /t 30
* /a

A

shutdown

  • shutdown machine
  • restart machine
  • shutdown machine in 30 seconds
  • abort shutdown
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

sfc

  • What does the Command Prompt utility do?
  • What does the /scannow switch do?
A
  • Scans the integrity of system files and replaces incorrect/old versions with correct versions
  • Attempts to repair corrupted files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the name of the command utility that launches a text-based, partitioning utility?

A

diskpart

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

What is the name of the network command-line utility that combines the features of ping and tracert?

A

pathping

17
Q

What are 2 commands used for resetting DHCP configuration settings for all adapters?

A
  • ipconfig /release
  • ipconfig /renew
18
Q

netstat command

  • What parameter allows to display all active TCP connections and the TCP/UDP ports on which the computer is listening?
  • What parameter allows to display the name of the application involved in creating each connection or listening port?
  • What parameter allows to display addresses and ports in numerical form?
A
  • -a
  • -b
  • -n
19
Q

chkdsk command

  • What does the /f switch mean?
  • What does the /r switch mean?
A
  • Fixes errors on the disk
  • Locates bad sectors and recovers readable information. It also fixes errors on the disk (Because /r also implies /f)
20
Q

What are 2 commands that can be used to display help information related to a specific utility?

A
  • [command] help
  • [command] /?