1.5 Windows Command Line Tools Flashcards

(23 cards)

1
Q

How do you open the Windows Command Prompt?

A

Search for cmd in the Start menu

This is the standard method to access the Command Prompt in Windows.

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

Why should you run Command Prompt as administrator?

A

To gain elevated privileges for system-level changes

Running as administrator allows access to commands that require higher permissions.

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

What does the help command do?

A

Displays a list of available commands or details about a specific command

This command is useful for finding out how to use other commands.

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

What does adding /? after a command do?

A

Shows syntax and available options for that command

This is a common way to get help for a specific command.

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

What does the dir command do?

A

Lists files and directories in the current folder

This command helps users see the contents of their current directory.

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

What is the purpose of the cd command?

A

Changes the current directory

This command is essential for navigating through the file system.

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

What does the md command do?

A

Creates a new directory (folder)

This command is used to organize files into separate folders.

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

What does the rd command do?

A

Removes (deletes) a directory

This command is used to delete empty directories.

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

What is chkdsk used for?

A

Checks and repairs disk/file system errors

This command is important for maintaining disk health.

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

What does chkdsk /f do?

A

Fixes file system errors on the disk

This option is used to automatically fix errors found.

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

What does chkdsk /r do?

A

Locates bad sectors and attempts data recovery

This option is more thorough and can recover readable information.

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

What is the format command used for?

A

Prepares (initializes) a disk for use by erasing and setting up a file system

This command is essential before using a new disk.

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

What is diskpart used for?

A

Advanced disk, partition, and volume management

This command provides a command-line interface for disk management.

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

What does the copy command do?

A

Copies files from one location to another

This command is fundamental for file management.

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

What does the /v switch do in the copy command?

A

Verifies that files are copied correctly

This switch ensures data integrity during the copy process.

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

What does the /y switch do in the copy command?

A

Suppresses overwrite confirmation prompts

This switch allows for smoother copying without interruptions.

17
Q

What is robocopy used for?

A

Advanced file copying with support for large, resumable, and throttled transfers

This command is more robust than the basic copy command.

18
Q

What does the hostname command display?

A

The name of the computer

This command is useful for identifying the machine on a network.

19
Q

What does the winver command show?

A

The Windows version information

This command provides details about the operating system version.

20
Q

What does the whoami command display?

A

The currently logged-in user and their context

This command is useful for verifying user identity in a multi-user environment.

21
Q

What does gpupdate do?

A

Forces a Group Policy update

This command is used to refresh Group Policy settings on a computer.

22
Q

What does gpresult do?

A

Displays applied Group Policy settings

This command helps troubleshoot Group Policy issues.

23
Q

What is sfc /scannow used for?

A

Scans and repairs corrupted or missing system files

This command is essential for maintaining system integrity.