STUDY
18
wp-singular,page-template-default,page,page-id-18,wp-custom-logo,wp-theme-bridge,wp-child-theme-bridge-child,bridge-core-3.3.3,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,qode-content-sidebar-responsive,qode-smooth-scroll-enabled,qode-child-theme-ver-1.0.0,qode-theme-ver-30.8.7.1,qode-theme-bridge,disabled_footer_top,qode_header_in_grid,wpb-js-composer js-comp-ver-8.4.1,vc_responsive

linux / rocky # history 조회 시 날짜 시간 표시하기

작성자
Ethan
작성일
2024-03-20 18:36
조회
1510

/etc/profile에 HISTTIMEFORMAT 변수를 추가해 주면 history 조회 시 해당 명령어를 입력한 날짜, 시간이 표시 됨

1. /etc/profile에 아래 내용 추가
# vi /wtc/profile

HISTTIMEFORMAT="%F %T "
export HISTTIMEFORMAT

2. 적용
# source /etc/profile

3. 확인
# history

전체 76
번호 제목 작성자 작성일 추천 조회
76
비밀글 111111
Ethan | 2025.04.24 | 추천 0 | 조회 5
Ethan 2025.04.24 0 5
75
비밀글 213421341234124
Ethan | 2025.03.21 | 추천 0 | 조회 5
Ethan 2025.03.21 0 5
74
비밀글 123123
Ethan | 2025.02.03 | 추천 0 | 조회 7
Ethan 2025.02.03 0 7
73
레이드 카드(raid card) 제조사별 상태 확인
Ethan | 2025.01.16 | 추천 0 | 조회 160
Ethan 2025.01.16 0 160
72
LINUX | MegaCli 사용법
Ethan | 2024.12.16 | 추천 0 | 조회 270
Ethan 2024.12.16 0 270
71
리눅스 명령어 모음
Ethan | 2024.10.29 | 추천 0 | 조회 406
Ethan 2024.10.29 0 406
70
리눅스 tar / tar.gz / zip 압축 및 압축 해제
Ethan | 2024.08.07 | 추천 0 | 조회 529
Ethan 2024.08.07 0 529
69
리눅스 서버 로그 확인 방법
Ethan | 2024.08.07 | 추천 0 | 조회 1353
Ethan 2024.08.07 0 1353
68
윈도우11 파일탐색기 더 많은 옵션 표시 끄기/켜기
Ethan | 2024.07.30 | 추천 0 | 조회 486
Ethan 2024.07.30 0 486
67
linux / rocky # history 조회 시 날짜 시간 표시하기
Ethan | 2024.03.20 | 추천 0 | 조회 1510
Ethan 2024.03.20 0 1510
66
geoip 국가 코드 (geoip country code)
Ethan | 2024.03.20 | 추천 0 | 조회 558
Ethan 2024.03.20 0 558
65
linux / CentOS -> Rocky8, Rocky9 네트워크 설정 변경 내용
Ethan | 2024.03.16 | 추천 0 | 조회 2312
Ethan 2024.03.16 0 2312
64
linux/SSH - ssh no matching key exchange method found 에러 원인과 해결 방법
Ethan | 2024.03.11 | 추천 0 | 조회 3491
Ethan 2024.03.11 0 3491
63
linux / Rocky 남은 용량 확인 명령어
Ethan | 2024.02.23 | 추천 1 | 조회 2194
Ethan 2024.02.23 1 2194
62
linux / Rocky8 SSH접속 허용하기
Ethan | 2024.02.23 | 추천 0 | 조회 5314
Ethan 2024.02.23 0 5314