13 Typing shortcuts Flashcards

1
Q

all recently entered commands

A

history

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

n_th history entry

A

!

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

previous command

A

!!, !-1

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

previous command line minus first word

A

!*

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

repetition of entire command sequences

A

ctrl - o

works on mac??

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

search a string in history

A

ctrl-r

press again for previous matches

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

how does bash interpret the raw key entry and format the cursor position etc…

A

readline line editor library

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

move to start/end

A

ctrl-a

ctrl-e

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

deletes (kills) the rest of the line

A

Ctrl-K

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

deletes a word (first letter to cursor)

A

Ctrl-W

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

inserts deleted strings

A

Ctrl-Y

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

performs history expansion on current line

A

ESC ˆ

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

turns current line into a comment

A

ESC #

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