لینوکس و شبکه

لینوکس و شبکه
طبقه بندی موضوعی
آخرین مطالب
  • ۹۹/۱۱/۱۳
    java

Bash Bang (!) Commands

سه شنبه, ۱ مرداد ۱۳۹۸، ۱۱:۵۳ ق.ظ


!! 

execute last command.

!top

execute the most recent command that starts with ‘top’ (e.g. !).

!top:p

displays the command that !top would run (also adds it as the latest command in the command history).

!$ 

execute the last word of the previous command (same as Alt +., e.g. if last command is ‘cat tecmint.txt’, then !$ would try to run ‘tecmint.txt’).

!$:p

displays the word that !$ would execute.

!*

displays the last word of the previous command.

!*:p

displays the last word that !* would substitute.

  • ۹۸/۰۵/۰۱
  • behrooz mohamadi nsasab