Linked Questions
40 questions linked to/from Preserve bash history in multiple terminal windows
5
votes
1
answer
10k
views
Automatically save bash command history in screen session [duplicate]
I connect to a screen session. After doing some stuff I detach it. Then in history | tail I only see screen -r and previous commands and not the commands run in screen session. Basically history shows ...
6
votes
1
answer
3k
views
How do I make my bash login session "autosave" its history? [duplicate]
If I am not mistaken, bash saves its history to ~/.bash_history (or to $HISTFILE) on exit from a login shell session. But - what if you want to occasionally persist it for fear of the shell getting ...
2
votes
1
answer
2k
views
Is there a way to save all bash commands from all terminals to a single file? [duplicate]
Is there a way to save all bash commands from all terminals to a single file? By default, different terminals have different history and that gets confusing. I'd like to save all history to a single ...
4
votes
0
answers
554
views
What do you use to manage your shell history? [duplicate]
Possible Duplicate:
Preserve bash history in multiple terminal windows
Can I easily search my history across many screen windows?
I rely on my shell history a lot, I use Ctrlr and arrow keys and ...
0
votes
1
answer
387
views
Can we change how bash_history gets updated? [duplicate]
As I'm using bash on my Desktop, I have a multi-tab Gnome Terminal window with 6 to 10 shells opened in there.
When I log out of my X session, my ~/.bash_history gets updated in some random way... (...
4
votes
0
answers
276
views
How to preserve bash history in multiple terminal windows [duplicate]
Possible Duplicate:
Preserve bash history in multiple terminal windows
While working, usually I have multiple terminal windows open (or tabs). I use konsole, but it could be few ssh sesions to one ...
125
votes
11
answers
54k
views
Bash history: "ignoredups" and "erasedups" setting conflict with common history across sessions
First of all, this is not a duplicate of any existing threads on SE. I have read these two threads (1st, 2nd) on better bash history, but none of the answers work - - I am on Fedora 15 by the way.
I ...
76
votes
3
answers
101k
views
Using export in .bashrc
I have noticed in my .bashrc that some lines have export in front of them, such as
export HISTTIMEFORMAT="%b-%d %H:%M "
...
export MYSQL_HISTFILE="/root/.mysql_history"
whereas others don't, such ...
60
votes
3
answers
26k
views
Excluding some of the commands from being getting stored in bash history
Is there any way to exclude commands like rm -rf, svn revert from being getting stored in bash history? Actually I, by mistake, have issued them a number of times even though I have no intent to do, ...
66
votes
2
answers
28k
views
Why would anyone not set 'histappend' in bash?
After finding out what this shopt -s histappend means, it seems a very sane setting, and I'm surprised that it isn't default. Why would anyone want to wipe their history on each shell exit?
35
votes
5
answers
65k
views
sometimes history commands are not stored in .bash_history
I issued many commands yesterday in my CentOS 7. But when I wanted to retrieve these commands today, I found there was no any record. When I opened the file .bash_history, I still could not find the ...
29
votes
2
answers
16k
views
How to sync terminal session command history in bash?
I've
tried to search in ~/.bash_history for my recent commands while in a
terminal session but they just weren't there. I guess this is because I
have multiple terminal sessions open.
Is there a ...
9
votes
3
answers
15k
views
Is it possible to view another shell's history?
I am running something in a bash window that I don't want to interrupt or even suspend momentarily. Is it possible to view command history of that particular window's session? I have multiple windows ...
11
votes
3
answers
11k
views
Preserve tcsh history in multiple terminal windows
How can we preserve or maintain the same history across multiple terminals?
The same question, but for bash shell , were discussed in the below link
Preserve bash history in multiple terminal ...
6
votes
3
answers
6k
views
Different "history" command output after reconnecting via SSH
Why do I get different results for the "history" command for the same user after I reconnect a disconnected SSH session?
I connect to a server using putty (SSH), say as root
My network gets ...