Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mzajc
11 months ago
|
parent
|
context
|
favorite
| on:
When root meets immutable: OpenBSD chflags vs. log...
Better yet, `shopt -s 'histappend'` in your .bashrc and `chattr +a .bash_history`. This will still allow bash to add to the history, but it won't be able to trim the file.
mmsc
11 months ago
[–]
Yes! And for macOS, `chflags uappnd .bash_history`
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: