What is the command to check user history in Linux?

Nguyễn Tân

New member
What is the command to check user history in Linux?
Answer
To see it, issue the ls -a command.
  1. $ ls -a . .. . bash_history .bash_logout .bash_profile .bashrc.
  2. $ echo $HISTSIZE 1000 $ echo $HISTFILESIZE 1000 $ echo $HISTFILE /home/khess/.bash_history.
  3. $ . ~/.bashrc.
  4. $ echo $HISTSIZE 500 $ echo $HISTFILESIZE 500.
  5. $ history -w.
 

Tìm kiếm

Back
Top