OS/LINUX

[LINUX] history 명령어

donghunl 2011. 5. 17. 09:26
반응형

리눅스에서는 각 계정별로 사용자가 사용했던 명령어들을 기록하고 있다.
이 정보는 각 계정의 홈 디렉토리에 .bash_history 파일로 존재한다.

[root@localhost ~]# ls -l .bash_history
[root@localhost ~]# history
[root@localhost ~]# history 10
[root@localhost ~]# history | grep vi
[root@localhost ~]# history -w commandHistory.txt

반응형