Cli Commands Module 2 Flashcards

1
Q

find /var/ -name dpkg.log

A

locates historical records of the installation package

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

find /var/ -name dpkg.log 2 >/dev/null

A

to redirect the error messages and prevent them from being displayed

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

grep firefox /var/log/dpkg.log

A

to find the time that firefox was installed

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

grep rw password. – color

A

to find how many times the word passwords appears in files located in your home directory

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

“history”

A

shows all commands you have used

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

.bash_history

A

only contains the first lines of the history command

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