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
2
Q
Options command line parameter
A
- Start with a dash
- also called switches
- How to do it
3
Q
Argument command line parameter
A
- No leading dash
- Often names of files
- What to do it with
4
Q
Typical command line format
A
- Command, Option, Argument
- can vary depending on the program
5
Q
Shell Script
A
File containing a series of commands
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
7
Q
Variable requirements
A
- Start with a letter
- No spaces
- No punctuation marks
8
Q
printenv
A
Displays environmental variables
9
Q
Meta character
A
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
- ”” ‘’ \
11
Q
~
A
Represents home directory
12
Q
ls
A
- List contents of current directory
- -ls list with addtional detail
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)
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
15
Q
dmesg command
A
Shows system boot time messages.