Command Line Flashcards

1
Q

Command

A
  • Sequence of characters in a line which ends by pressing enter and is subsequently evaluated by the shell
  • What to do
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Options command line parameter

A
  • Start with a dash
  • also called switches
  • How to do it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Argument command line parameter

A
  • No leading dash
  • Often names of files
  • What to do it with
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Typical command line format

A
  • Command, Option, Argument
  • can vary depending on the program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Shell Script

A

File containing a series of commands

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

Variables

A
  • Areas of memory that can be used to store information and are referred to by a name
  • “$name” create variable
  • name=david set value of variable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Variable requirements

A
  • Start with a letter
  • No spaces
  • No punctuation marks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

printenv

A

Displays environmental variables

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

Meta character

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

Quoting

A
  • Act of protecting shell meta-characters from being treated specially by the shell
  • ” not treated as wildcard when quoted (or ‘’ or *
  • Prevents shell from acting on and expanding the meta-characters
  • ”” ‘’ \
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

~

A

Represents home directory

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

ls

A
  • List contents of current directory
  • -ls list with addtional detail
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Manual (Man) Pages

A
  • A set of pages explaining every command available on the system
  • $man command you want to use
  • -k (executes key word search of man pages)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Info Pages

A
  • Like MAN pages but more detailed
  • Divided into different nodes or pages and works like a web browser
  • p previous, n next, q exit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

dmesg command

A

Shows system boot time messages.

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

CTRL + SHIFT + C

A

Copy highlighted text while working in the command line