Here's something interesting - We collected bash history of around 15000 users and listed frequented used commands for fun :) http://www.webminal.org/fulc/
“I have [bash] history back to ~2003”
41–50 of 148 posts
Re: “I have [bash] history back to ~2003”
#42Why even store your bash history? It's like you store everything you ever said... Would you lose your precious time to go through the old stuff? I wouldn't.
Re: “I have [bash] history back to ~2003”
#43bash history had never seemed to work for me between tmux windows. Commands are 'trapped' in their respective window and the last one to close 'wins' and writes its history over the others. So I end-up with never-closing task-based window sessions and occasionally copy-paste commands to a safe file for future reference. I really should investigate the root cause some day...
Re: “I have [bash] history back to ~2003”
#44Here's something interesting - We collected bash history of around 15000 users and listed frequented used commands for fun :) http://www.webminal.org/fulc/
Kind of interesting, might be more interesting to see what the other end of the distribution looked like, i.e. the really esoteric commands that people rarely use. We all might learn something from that!
Re: “I have [bash] history back to ~2003”
#45Re: “I have [bash] history back to ~2003”
#46Why even store your bash history? It's like you store everything you ever said... Would you lose your precious time to go through the old stuff? I wouldn't.
Instead of simply scrolling through your recent bash history when you press (which still works the same when your prompt is empty), it filters out any command that don't match the partial command you've already typed. For example, typing "cp " and then pressing up will find the last "cp" command that I typed.
Re: “I have [bash] history back to ~2003”
#47Earlier quoted context omitted.
Kind of interesting, might be more interesting to see what the other end of the distribution looked like, i.e. the really esoteric commands that people rarely use. We all might learn something from that!
We have common mistakes list http://www.webminal.org/common_mistakes/ but didn't figure-out something like which is the least-used valid command. Good idea, we will dig deeper into their bash_history :)
Re: “I have [bash] history back to ~2003”
#48This guy is the inverse of me, because I have linked my .bash_history to /dev/null
Re: “I have [bash] history back to ~2003”
#49bash history had never seemed to work for me between tmux windows. Commands are 'trapped' in their respective window and the last one to close 'wins' and writes its history over the others. So I end-up with never-closing task-based window sessions and occasionally copy-paste commands to a safe file for future reference. I really should investigate the root cause some day...
shopt -s histappend
export PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
in your ~/.bashrc.Also, if you want fresh history in an already opened window (assuming you added the above), do "history -n". E.g. if you typed "longcommand" in window1, then switch to window2, do "history -n" and uparrow, and "longcommand" will be there.
Re: “I have [bash] history back to ~2003”
#50Earlier quoted context omitted.
We have common mistakes list http://www.webminal.org/common_mistakes/ but didn't figure-out something like which is the least-used valid command. Good idea, we will dig deeper into their bash_history :)
I think ".." was "cd .." in dos