I want use kj 1 for kill -9 %1
kj 1
kill -9 %1
I try:
alias kj='kill -9 %'
but I can't use either kj1 or kj 1.
kj1
It's there any way to do this?
For almost every purpose, aliases are superseded by shell functions.
kj() { kill -9 %$@}
unalias kj
For almost every purpose, aliases are superseded by shell functions.
– icarus Jun 05 '20 at 03:53kj() { kill -9 %$@}
, and sometime needunalias kj
first – OverSang Jun 05 '20 at 05:55