Home Linux Linux History 시간 남기기 Linux History 시간 남기기 2019/09/05 Linux에서 history에 시간을 남기려면 bash Shell의 환경변수 HISTTIMEFORMAT을 정의해주면 된다. [bash 3.0 이상에서 사용 가능] 적용전 history /etc/profile 에 아래와 같이 추가합니다. HISTTIMEFORMAT="%Y-%m-%d [%H:%M:%S] " export HISTTIMEFORMAT 12 HISTTIMEFORMAT="%Y-%m-%d [%H:%M:%S] "export HISTTIMEFORMAT 추가후 아래와 같이 적용합니다. source /etc/profile 1 source /etc/profile 적용후 실행 history Tagslinux Facebook Email LEAVE A REPLY Cancel reply Please enter your comment! Please enter your name here You have entered an incorrect email address! Please enter your email address here Save my name, email, and website in this browser for the next time I comment. Time limit is exhausted. Please reload the CAPTCHA. 5 + 6 = 최신글 Games mynotes - 2021/01/300에픽게임즈 – Dandara: Trials of Fear Edition억압받으며 종말의 위기에 처한 기이한 세계에서 Dandara는 세상을 바로잡기 위해 깨어났습니다. 신비한 생물과 끝없는...Read more 인기글 Java 정규표현식으로 문자, 숫자, 특수문자의 조합 패턴 체크 Language mynotes - 2016/01/19 0 Java 정규표현식으로 문자, 숫자, 특수문자의 조합 패턴 체크 Read more ubuntu SNMP 설치 및 설정 Linux mynotes - 2015/02/16 1 ubuntu SNMP 설치 및 설정 1.apt-get snmpd snmp rrdtool 2.snmpd.conf 백업 3.iostat-persist.pl 다운로드 4.snmpd.conf생성 5./etc/default/snmpd 수정 6.service snmpd restart 7.snmpwalk (snmp확인) Read more [이클립스] console 출력 제한 해제 Language mynotes - 2015/10/27 0 이클립스 console 출력 제한 해제 1.limit console output 체크를 해제하시면됩니다. Read more Let’s Encrypt 무료 SSL 인증서 갱신하기 Linux mynotes - 2016/03/04 2 Let’s Encrypt 무료 SSL 인증서 갱신하기 Let’s Encrypt 무료 SSL 인증서는 3개월단위로 인증서가 발급됩니다. 매번 체크해서 인증서를 갱신할기보다는 Crontab에 등록하여 3개월마다 갱신되게 아래와 같이 스크립트생성후 crontab에 등록하는... Read more