Linux Shell History And tab compleyio Flashcards

1
Q

Where is the shell history stored

A

~/.bash_history

~/.history

~/.histfile

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

history

A

Displays computer shell history

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

HISTSIZE

A

Controls the number of commands stored in history

Eg:
Export HISTSIZE=1000

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

!NUmber

A

Rerun the command at a given number line from your shell history

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

!!

A

Repeat the previous command line

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

!string

A

Repeat the most recent line that starts with “string”

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

!:1

A

Get the second part of a command line

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

!^

A

!:1

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

!$

A

The final argument

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

Ctrl-r

A

Search your command line history for a certain command

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