LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   history in linux (https://www.linuxquestions.org/questions/linux-newbie-8/history-in-linux-651469/)

sunilvadranapu 06-25-2008 01:46 AM

history in linux
 
Hi,
in Linux, when we run the command history, from where it will get the hostory and display the output? where that file will be stoted?
any idea??

thanks in advance?

-sunil

tailender 06-25-2008 02:26 AM

.history or .bash_history or some thing like that in your home directory/..
press ctrl+h (in gnome any way) and you will see the hidden files

sonaul 06-25-2008 04:20 PM

How to append "DAY,DATE,MONTH,YEAR,TIME & ZONE to HISTORY

Set the following environment variable:
Quote:
HISTTIMEFORMAT="%c # "

Then try history command

Cuetzpallin 06-26-2008 08:52 AM

Quote:

Originally Posted by sonaul (Post 3195137)
How to append "DAY,DATE,MONTH,YEAR,TIME & ZONE to HISTORY

Set the following environment variable:
Quote:
HISTTIMEFORMAT="%c # "

Then try history command

Nice tip :D


All times are GMT -5. The time now is 02:26 AM.