history 1. history -c // 삭제 cat /dev/null > /root/.bash_history 2. history -w [파일명.txt] // history 내용 파일로 저장 또는 history > /usr/local/src/[파일명.txt] 3. history n // 숫자만큼 마지막부터 출력한다 4. history | grep test // test 단어 들어갔던 명령어만 출력 5. history 내용 기록된 파일은 ~/.bash_history history 시간 출력 vi /etc/profile ================================================================================= export HISTTIMEFORMAT="%F%T" ================================================================================= source /etc/p...
#
history
원문 링크 : history & 시간출력