When the terminal is closed and reopened, we should store the commands history, the output history and so on