← Learn
Dangerous
history -c && export HISTFILE=/dev/null

linux · bash · Intermediate

Wipes the in-memory shell history and then redirects the history file to the null device so nothing further is recorded. Neither half touches a file an ordinary user would miss, which is precisely why this pattern shows up right before something worth hiding.

Signals to notice

  • Clears command history
  • Redirects the history file to /dev/null
  • Removes the record of what happened next

Think you can spot these under time pressure?

Start Training

More Persistence