한 사용자로 여러 터미날에서 접속하다보니 각 터미날의 명령어 히스토리 저장이 문제가 있어서 HISTFILE 설정을 통해 각 터미날 별로 별도의 파일에 히스토리를 저장하도록 했습니다.
지정한 파일명에 히스토리가 잘 기록되는데, 특정 파일에 저장된 내용을 history 명령으로 읽고 싶습니다.
방법이 있을까요? 조언 부탁드립니다.
history 명령은 보통 셸의 내장 명령이며, 따라서 셸 manpage에서 관련 정보를 얻으실 수 있습니다.
많이 쓰는 bash의 경우...
man bash:
history [n] history -c ... -r Read the contents of the history file and use them as the current history.
라는군요.
$PWD `date`
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
history 명령은 보통 셸의 내장 명령이며,
history 명령은 보통 셸의 내장 명령이며, 따라서 셸 manpage에서 관련 정보를 얻으실 수 있습니다.
많이 쓰는 bash의 경우...
man bash:
라는군요.
$PWD `date`
댓글 달기