← Learn
Dangerous
ln -sf /dev/null ~/.bash_history

linux · bash · Intermediate

Points the shell history file at the null device so every future command is discarded as it is written. It looks like tidy housekeeping and survives reboots, which makes it a durable way to stay unlogged.

Signals to notice

  • History permanently redirected to /dev/null
  • Persists across sessions
  • Disguised as a harmless symlink

Think you can spot these under time pressure?

Start Training

More Persistence