Unix Commands Flashcards

1
Q

Echo

A

Print on screen

Ex. Echo “hello world.”
> hello world.

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

Man

A

Opens the “user manual” for a command. Use if unsure about how to use the command.

Ex. man vi
> opens the manual for help using ‘vi’

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

vi

A

vi = “visual editor”
Command-line “notepad.”
Use to create basic text-based files.

Example file extensions:
Text file .txt
C-program file .csh 
Java file .java
Configuration files .ini
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

vi commands to go from command to input mode:

A

i insert text before cursor
I insert text at beginning of current line
a append text after cursor
A append text to end of current line
o open and put text in a new line below current line
O open and put text in a new line above current line
esc exit input mode

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

vi commands to enter input mode

A

i insert text before cursor
I insert text at beginning of current line
a append text after cursor
A append text to end of current line
o open and put text in a new line below current line
O open and put text in a new line above current line
esc exit input mode (back to command mode)

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

vi commands to save and exit vi

A

:wq - write and quit

:q! - quit without writing

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