LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2008, 01:46 AM   #1
sunilvadranapu
Member
 
Registered: May 2006
Posts: 64

Rep: Reputation: 15
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
 
Old 06-25-2008, 02:26 AM   #2
tailender
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Rep: Reputation: 15
.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
 
Old 06-25-2008, 04:20 PM   #3
sonaul
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
How to append "DAY,DATE,MONTH,YEAR,TIME & ZONE to HISTORY

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

Then try history command
 
Old 06-26-2008, 08:52 AM   #4
Cuetzpallin
Member
 
Registered: Feb 2008
Location: Monterrey, MX
Distribution: Slackware since 3.4 and love it!!!
Posts: 164

Rep: Reputation: 31
Quote:
Originally Posted by sonaul View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I clear history in Linux ibrahimt Linux - Security 8 07-14-2009 02:15 AM
Linux history........... andrewking General 9 04-27-2007 10:58 AM
The History of Linux: Did I get it right? tromboneman General 6 03-13-2007 09:26 AM
Download history and copy history? inverted.gravity Linux - Newbie 1 02-21-2006 12:31 PM
History of Linux redfedora88 Linux - General 2 10-04-2004 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration