show command history
history behaves differently in bash than it does in zsh : In short: zsh : history lists only the 15 most recent history entries history 1 lists all - see below. bash : history lists all history entries. Sadly, passing a numerical operand to history behaves differently, too: zsh : history <n> shows all entries starting with <n> - therefore, history 1 shows all entries. ( history -<n> - note the - - shows the <n> most recent entries, so the default behavior is effectively history -15 ) bash : history <n> shows the <n> most recent entries. (bash's history doesn't support listing from an entry number; you can use fc -l <n> , but a specific entry <n> must exist , otherwise the comma...