Showing command history

The cmdhistory -set command shows the last xcommands executed in the current session, up to the maximum that you have specified.

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 have entered for the session is displayed. For example, you request a count of 10 and have set a maximum command history of 50. You have executed 200 commands in that session, but the count shows the last 10 commands. However, if you have only executed five commands in that session, the count shows the last five commands.

Example

Show the last three commands executed in this session.

ccm cmdhistory –show 3

copy_project -c "test projA" projA-3
task -query -owner sue -release cm/7.0 -f "%priority %task_synopsis"
task -default 26


Feedback