Introduction to the Command Line Flashcards

1
Q

What is an interface?

A

A system for operating a computer

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

What are the two components of an interface?

A
  • A display of information about what the computer is doing

- A method for telling the computer what to do

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

What does CLI stand for?

A

Command Line Interface

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

What is the PS1 in a CLI?

A

The prompt

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

What information is included in the prompt in a CLI?

A
  • User
  • Hostname
  • Current Directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What symbol is used to represent the prompt in a CLI?

A

$

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

What indicates you can input text in a CLI?

A

The cursor

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

What does STDIN stand for?

A

Standard Input

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

What does STDOUT stand for?

A

Standard Output

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

What is the basic format for a command in a CLI?

A

[command][arguments]

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

What are arguments (in a CLI)?

A

Information provided to a command in the form of strings

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

What type of argument must proceed other arguments?

A

Flags

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

What type of flags can usually be combined?

A

Abbreviated flags

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

What type of arguments usually start with a single dash?

A

Abbreviated flags

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

What type of arguments usually starts with two dashes?

A

Full word flags

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

Which command can be used to obtain more information about another command?

A

man (manual)

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

What is a command (in a CLI)?

A

An instruction for the computer entered into STDIN

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

What symbol represents the home directory?

A

~

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

What symbol represents the root directory?

20
Q

What is a CLI?

A

An interface that uses mostly text for display and input components of the interface

21
Q

What is a cron job?

A

A scheduled task

22
Q

Where is the cursor located in a CLI?

A

Following the prompt

23
Q

What is the hostname?

A

The computer’s name

24
Q

What is the newline character in Terminal?

25
What is provided in the output in a CLI?
Textual information regarding the results of a command
26
Where are commands typed in a CLI?
STDIN
27
Where is information related to a command displayed in a CLI?
STDOUT
28
What is the most common use of the command line?
System administration
29
What does system administration consist of?
managing computers and servers
30
Which command can be used to display contents of a file in a Linux CLI?
cat (concatenate)
31
Which command can be used to switch between directories in a Linux CLI?
cd (change directory)
32
Which command can be used to erase the information in STDOUT in a Linux CLI?
clear
33
Which command can be used to print text to STDOUT in a Linux CLI?
echo
34
Which command can be used to copy a file or directory in a Linux CLI?
cp (copy)
35
Which command can be used to get a list of files and directories in the current directory in a Linux CLI?
ls (list)
36
What is the difference between the commands more and less in a Linux CLI?
More shows the contents of a file line by line while less allows you to move forward or backwards by line or page
37
Which command can be used to show the first part of a file in a Linux CLI?
head
38
Which command can be used to show the last part of a file in a Linux CLI?
tail
39
Which command can be used to create a new folder in a Linux CLI?
mkdir (make directory)
40
Which command can be used to make a new file or directory in a Linux CLI?
mv (move)
41
Which command can be used to move a file or directory in a Linux CLI?
mv (move)
42
Which command can be used to tell you what directory you are currently in in a Linux CLI?
pwd (print working directory)
43
Which command can be used to delete a file in a Linux CLI?
rm (remove)
44
What flag must be used in order to delete a folder in a Linux CLI?
-r (recursive)
45
Which command can be used to create a file in a Linux CLI?
touch
46
What letter can be used to exit the manual in a Linux CLI?
q