get the list of all commands ran on command prompt code example Example: command to check commands compgen -c #In Unix help | more #In Windows