CMD Flashcards Preview

CompTIA A+ > CMD > Flashcards

Flashcards in CMD Deck (19)
Loading flashcards...
1
Q

What is the Shell?

A

It is the Command Line Interpreter. The default Windows shell is cmd.exe. When you open a command prompt, you start a shell. The shell acts as the command-line interpreter.

2
Q

Both Mac OS X and Linux give you the ability to run the command line with advanced privileges, called what?

A

super user or root privileges

3
Q

Whenever you need to run a command as root, what do you type?

A

Sudo, followed by the command.

4
Q

T or F? Many Linux systems disable the root account for safety, rendering the su command inoperable. The sudo command enables users to do root things without having the root password.

A

True

5
Q

What is the working directory?

A

It is the specific folder that command prompt is working on. he OS executes commands in the specified folder unless otherwise directed.

6
Q

What is a file’s association?

A

It is the extension that tells the operating system what kind of program uses the data.

For example, Microsoft Word is associated with any file that has the extension .docx or .doc.

7
Q

What’s a file extension?

A

it tells the operating system what type of program uses this data. (.pdf)

8
Q

What’s the term for the proper way to write a command?

A

Syntax

9
Q

What is a switch?

A

A modification by using an extra letter or number, which may follow either the command or the target, depending on the command. “/s”

10
Q

What does the chkdsk command with the switch /f do?

A

Attempts to fix file system–related errors

11
Q

What does the chkdsk command with the switch /r do?

A

Attempts to locate and repair bad sectors

12
Q

What does the system file checker command do?

A

scans, detects, and restores important Windows system files, folders, and paths

13
Q

Which of key is an illegal character in a Linux filename?

A

/ (forward slash)

14
Q

Which command pauses after displaying a screen’s worth of directory contents? (Choose two.)

A

The ls | more and dir /p commands in Linux and Windows, respectively

15
Q

Which of the following commands will delete all of the files in a directory in Linux?

A

Type rm * and press enter to delete all files in a directory in Linux

16
Q

Which command do you use to determine your exact folder location (path) in Linux?

A

pwd

17
Q

What do you type before a Linux command to access help for that command?

A

Access the help for a Linux command by typing man [command name].

18
Q

Which of the following Linux commands will show detailed information about the contents of a folder?

A

Type ls –l and press enter to see detailed information about the contents of a folder in Linux.

19
Q

Of the following, which best describes the function of the Windows gpresult command?

A

Lists the group policies applied to a user