On Freebsd 11,using bash

history |grep rm
  176  man lprm
  262  rm -fr /tmp/.[a-zA-Z]*
  481  sudo rm /b*core
  503* sudo rm -frv /
  509* sudo rm -frv /nfs

I see two commands with * (503,509) ,but I never execute them. Why I see it?

  • could it be alias or .profile/.logout files? – Rui F Ribeiro Jan 2 '18 at 21:43

From help history (in bash):

Display the history list with line numbers, prefixing each modified entry with a `*'. An argument of N lists only the last N entries.

Emphasis mine.

The lines with an * have been modified.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.