Delete Bash history


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. history -c to flush the whole history
  2. history -d [n] to delete the command at line n
  3. history -tail, or
  4. history [n] to see the last n commands

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.