Linux History Command Word Designators

  • 0 (Zero) – returns the zeroth word, which is typically the command
  • n – returns the nth word of the selected command
  • ^ – returns the first argument for the command
  • $ – returns the last word, usually an argument
  • * – returns all words except for the zeroth word of the command

Comments