CMD 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

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

A

Sudo, followed by the command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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

What’s a file extension?

A

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

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

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

A

Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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”

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

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

A

Attempts to fix file system–related errors

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

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

A

Attempts to locate and repair bad sectors

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

What does the system file checker command do?

A

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

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

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

A

/ (forward slash)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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