![]() |
|
Increasing history size of commands executed in bash - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88) +---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85) +---- Thread: Increasing history size of commands executed in bash (/showthread.php?tid=5245128) |
Increasing history size of commands executed in bash - Tex. - Apr 21, 2016 Unlike the others who frequently delete '.bash_history' or alter the environment so no history of executed commands, i prefer to increase its size and to show my exact date was given an comman. The reason is simply, look what I did on that server and I need to see exactly . I added in '~/.bashrc' following lines: Code export HISTTIMEFORMAT="%d/%m/%y %T "So history shows default: Code macbook ~$ history So look on a server with changed history: Code root@tex:~# history* - FreakyFreak - Apr 21, 2016 Why have a limit ? export HISTTIMEFORMAT="%d/%m/%y %T " export HISTFILESIZE=-1 export HISTSIZE=-1 as well as export HISTFILESIZE= export HISTSIZE= makes it unlimited. * - ayleid96 - Apr 21, 2016 install zsh and its easy... its easy to configure... bump * - FreakyFreak - Apr 21, 2016 (Apr 21, 2016 02:19 PM)ayleid96 Wrote: install zsh and its easy... its easy to configure... bump Am I the only one who sticks to the system default and doesn't mess around with other variations of shells ? Fuck bash, fuck zsh, fuck fish, be old school, use bourne shell. |