Unix Concepts   «Prev 

Setting up and using Unix History Feature

This command starts the command history feature. In this case, the 50 most recent commands will be remembered.

A few random commands are entered, which are now being tracked by the history feature

History command displays previous commands in a numbered list. In this case, there are five, including the history command itself.

A few additional commands are entered

With a numeric argument, the history command displays a subset of the list. In this case, the last three commands are listed. Similarly, history 10 would list the last 10 commands.