history history command is used to print all the commands that were used in the terminal. history An Amazing Fact if we write a command after a space then the command is not recorded in the history of commands