Shell – Where to Find Log of Used Commands in Linux

command historyshellUtilities

In Linux, generally we use a lot of commands and it is difficult to remember all of them.

 history

command provides the list of commands we used previously but its limit is less. New commands are overwritten on old commands then old commands are missing. I think somewhere the log of the commands is stored in the system.

Is that log available to open and read? If possible can we change the maximum size of log that it can handle?

Is the output of history command depends upon the login-user?

Best Answer

The file ~/.bash_history saves the list of executed commands. At least in CentOS this file exists, I don't know if it exists in other distros.

Related Question