Showing command history

You can show the last xcommands executed in the current session, up to the maximum you have specified by using the cmdhistory -set command.

About this task

ccm cmdhistory -s|-sh|-show [count]
-s|-sh|-show
Shows the commands executed in the current session, up to the specified maximum, and excluding the cmdhistory command.
count
If you use the count argument, the number of commands you've entered for the session is displayed. For example, if you request a count of 10 and have set a maximum command history of 50, and you have executed 200 commands in that session, the count will show the last 10 commands. If you have only executed five commands in that session, the count shows the last five commands.

Example


Feedback