現状
# history ~(前略)~ 290 rpm -qa |grep mysql 291 mysql --version 292 yum install mysql 293 w 294 top 295 exit 296 systemctl status firewalld 297 exit 298 yum update 299 pwd 300 ls -la 301 vi .bashrc 302 history
# pwd /root # ls -la 合計 40 dr-xr-x---. 9 root root 276 3月 26 17:03 . dr-xr-xr-x. 17 root root 224 3月 26 16:29 .. -rw-------. 1 root root 6593 7月 19 23:53 .bash_history -rw-r--r--. 1 root root 18 12月 29 2013 .bash_logout -rw-r--r--. 1 root root 176 12月 29 2013 .bash_profile -rw-r--r--. 1 root root 639 3月 26 16:58 .bashrc -rw-r--r--. 1 root root 176 12月 29 2013 .bashrc.org ~(後略)~ # vi .bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' ~(中略)~ PERL_MB_OPT="--install_base \"/root/perl5\""; export PERL_MB_OPT; PERL_MM_OPT="INSTALL_BASE=/root/perl5"; export PERL_MM_OPT; ↓追記 HISTSIZE=10000 HISTTIMEFORMAT='%Y/%m/%d %H:%M:%S '
変更後
# history ~(前略)~ 290 2019/07/20 18:26:06 rpm -qa |grep mysql 291 2019/07/20 18:26:06 mysql --version 292 2019/07/20 18:26:06 yum install mysql 293 2019/07/20 18:26:06 w 294 2019/07/20 18:26:06 top 295 2019/07/20 18:26:06 exit 296 2019/07/20 18:26:06 systemctl status firewalld 297 2019/07/20 18:26:06 exit 298 2019/07/20 18:26:11 yum update 299 2019/07/20 18:41:05 pwd 300 2019/07/20 18:41:10 ls -la 301 2019/07/20 18:41:16 vi .bashrc 302 2019/07/20 18:41:54 history 303 2019/07/20 18:44:06 source .bashrc 304 2019/07/20 18:44:08 history