Show commands recorded by your shell in the current history list.
history | tail -n 15LINUX COMMAND ATLAS · COMMAND GUIDE
Show commands recorded by your shell in the current history list.
Shell builtinhistory [N] | history [-c] | history [-d OFFSET]
Show commands recorded by your shell in the current history list.
history | tail -n 15Show the most recent 20 commands.
history 20Show the last ten displayed history lines.
history | tail -n 10history is a shell builtin. Clearing the current list does not always remove history already written to disk.