“I have [bash] history back to ~2003” | Hacker News

Hacker News new | comments | show | ask | jobs | submit login “I have [bash] history back to ~2003” (twitter.com) 178 points by rcthompson 18 hours ago | 110 comments fps 3 hours ago $ history | wc -l 56201 I use a simple prompt_command hook to push my history (from all my machines) to a central MySQL database( https://github.com/fredsmith/history-db ). Entries are de-duped and a tally is kept so I can do simple ad-hoc reporting: mysql> select * from history order by count DESC limit 10; +-------+---------------------+-----------+----------+-------+ | id | timestamp | command | hostname | count | +-------+---------------------+-----------+----------+-------+ | 1 | 2015-09-02 19:41:45 | ls | xicada | 34458 | | 89 | 2015-09-02 14:58:33 | cd .. | xicada | 4332 | | 519 | 2015-08-24 18:38:55 | ll | xicada...

Linked on 2015-09-03 17:17:03 | Similar Links