/etc/profile에 HISTTIMEFORMAT을 설정해 bash history 기록에 명령 실행 시각 timestamp를 함께 표시하는 방법을 정리합니다. .bash_history 로그에 timestamp 추가하기 Add timestamp to .bash_history /etc/profile 에 해당 구문을 추가한다. HISTTIMEFORMAT="[%Y-%m-%d %H:%M:%S] " export HISTTIMEFORMAT Result [root@fastvm-centos-7-7-30 ~]# history 1 [2020-01-13 17:34:40] history -ps 2 [2020-01-13 17:34:40] ls 3 [2020-01-13 17:34:40] ip a 4 [2020-01-13 17:34:40] lsblk 5 [2020-01-13 17:34:40] df 6 [2020-01-13 17:34:40] history -ps 7 [2020-01-13 17:34:40] history 8 [2020-01-13 17:34:40] ls 9 [2020-01-13 17:34:40] cd /etc 10 [2020-01-13 17:34:40] ls 11 [2020-01-13 17:34:40] cd profile.d/
-
[Linux] .bash_history 로그에 timestamp 추가하기
-
[Container] Podman 설치 및 사용법
-
[Devops] Gitlab CE 설치
-
[Kubernetes] IBM Cloud Kubernetes Service 를 Free Tier 로 사용해보자!
-
[RHV] Red Hat Virtualization Host 추가 및 VM 생성
-
[RHV] Red Hat Virtualization Standalone Manager 설치
-
[RHV] Red Hat Virtualization Host 설치
-
[Linux] KVM nested virtualization
-
[Linux] noVNC 구성
-
[OpenShift] KVM 환경에 OpenShift 4 구동해보자!