HISTTIMEFORMAT
Jump to navigation
Jump to search
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile[1]
grep -qF 'HISTTIMEFORMAT' ~/.bashrc && echo "HISTTIMEFORMAT already exists in ~/.bashrc" || { echo 'export HISTTIMEFORMAT="%d/%m/%Y %T "' >> ~/.bashrc && echo "HISTTIMEFORMAT added to ~/.bashrc"; }
echo 'export HISTTIMEFORMAT="%d/%m/%Y %T "' >> ~/.bashrc export HISTTIMEFORMAT="%F %T "
Related[edit]
See also[edit]
Advertising: