Commands Flashcards

1
Q

history command

A

View history of the current user’s previously executed commands

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

history -c command

A

Clear current users history of previously executed commands

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

netstat command

A

Displays network connections for TCP, routing tables, and other network statistics

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

echo $? command

A

*Display the exit code of the last command executed from the shell.

*If the result is 0, then the last command was successfully run without any errors.

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

echo $SHELL command

A

outputs the current shell being used

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