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?

A

/

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?

A

\n

25
Q

What is provided in the output in a CLI?

A

Textual information regarding the results of a command

26
Q

Where are commands typed in a CLI?

A

STDIN

27
Q

Where is information related to a command displayed in a CLI?

A

STDOUT

28
Q

What is the most common use of the command line?

A

System administration

29
Q

What does system administration consist of?

A

managing computers and servers

30
Q

Which command can be used to display contents of a file in a Linux CLI?

A

cat (concatenate)

31
Q

Which command can be used to switch between directories in a Linux CLI?

A

cd (change directory)

32
Q

Which command can be used to erase the information in STDOUT in a Linux CLI?

A

clear

33
Q

Which command can be used to print text to STDOUT in a Linux CLI?

A

echo

34
Q

Which command can be used to copy a file or directory in a Linux CLI?

A

cp (copy)

35
Q

Which command can be used to get a list of files and directories in the current directory in a Linux CLI?

A

ls (list)

36
Q

What is the difference between the commands more and less in a Linux CLI?

A

More shows the contents of a file line by line while less allows you to move forward or backwards by line or page

37
Q

Which command can be used to show the first part of a file in a Linux CLI?

A

head

38
Q

Which command can be used to show the last part of a file in a Linux CLI?

A

tail

39
Q

Which command can be used to create a new folder in a Linux CLI?

A

mkdir (make directory)

40
Q

Which command can be used to make a new file or directory in a Linux CLI?

A

mv (move)

41
Q

Which command can be used to move a file or directory in a Linux CLI?

A

mv (move)

42
Q

Which command can be used to tell you what directory you are currently in in a Linux CLI?

A

pwd (print working directory)

43
Q

Which command can be used to delete a file in a Linux CLI?

A

rm (remove)

44
Q

What flag must be used in order to delete a folder in a Linux CLI?

A

-r (recursive)

45
Q

Which command can be used to create a file in a Linux CLI?

A

touch

46
Q

What letter can be used to exit the manual in a Linux CLI?

A

q