LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 03-13-2009, 04:13 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
tcsh: can you save the history from multiple shells to one history file?


I often have several terminal windows open at any one time. My history file seems to only hold the history from the last shell I close at the end of the day.

I know I can have each shell write to a different file, but is there a way to have each shell write to the same file so that when I come in the next day & hit the up arrow in a terminal, it will go through everything I did the day before?


I figured something out late last night & didn't bother writing it down. Now what I did is no longer in my history because I closed that terminal down before another one. Trying to avoid that happening again.
 
Old 04-22-2009, 07:19 PM   #2
rhel5
Member
 
Registered: Mar 2009
Location: Bay Area, CA
Distribution: Redhat Enterprise Linux
Posts: 59

Rep: Reputation: 15
I am also wondering the same thing.

Instead, I would like to use it as a log file to track what an user has been doing on my box.

Thanks!
 
Old 04-23-2009, 05:19 AM   #3
jisjis
LQ Newbie
 
Registered: Apr 2009
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by BrianK View Post
I often have several terminal windows open at any one time. My history file seems to only hold the history from the last shell I close at the end of the day.

I know I can have each shell write to a different file, but is there a way to have each shell write to the same file so that when I come in the next day & hit the up arrow in a terminal, it will go through everything I did the day before?


I figured something out late last night & didn't bother writing it down. Now what I did is no longer in my history because I closed that terminal down before another one. Trying to avoid that happening again.

Write a small script to concat the content of your bash history file every couple of mins.

Linux

Last edited by jisjis; 04-26-2009 at 04:38 AM.
 
  


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
Save history command in another file jsantosh_d Linux - Newbie 3 10-29-2008 02:01 AM
ESC+/ to search command history in tcsh wycolorado Linux - Newbie 1 06-30-2006 04:20 AM
ESC+/ to search command history in tcsh wycolorado Linux - General 0 06-28-2006 06:43 PM
tcsh history display format k4zau Linux - Software 1 10-12-2003 10:42 PM
tcsh history log twantrd Linux - General 3 06-25-2003 06:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 08:34 PM.

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