Beginner Linux & Shell Scripting
Q40 / 100

What is the purpose of the "history" command in bash?

Correct! Well done.

Incorrect.

The correct answer is B) It displays a list of previously executed commands in the current shell session

B

Correct Answer

It displays a list of previously executed commands in the current shell session

Explanation

"history" lists previously run commands with line numbers, which can be re-executed using "!<number>" or recalled with the up arrow key.

Progress
40/100