The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: command logs
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-23-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,759
Not normally. UNIX does keep a history file of your recent commands. The fc command for your system can recall commands recently issued. The file itself is indentifed in the environment variable HISTFILE

Code:
echo $HISTFILE
All of this is predicated on you using a modern, POSIX shell. If your shell is ancient, I cannnot tell you what to do. I'm guessing you are using bash, which is POSIX-compliant, since CentOS 5.1 is the current release.