Comment

Comment by mmsc

I also like to use

  sudo chattr +a .sh_history
to ensure that my shell history file isn’t deleted.

Being append-only, it also ensures that some type of timing issue in my shell which means my HISTFILESIZE or the equivalent isn’t set to something larger than default, meaning my history isn’t deleted.

parent mmsc 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton