! is pretty cool when used with history. If you enter history, you could use the reference number for any command from the list, and reuse it by doing: !123, where 123 is the number. Also, you could pipehistory (e.g, history | grep sudo to find all commands in history with sudo).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
!
is pretty cool when used withhistory
. If you enterhistory
, you could use the reference number for any command from the list, and reuse it by doing:!123
, where123
is the number. Also, you couldpipe
history
(e.g,history | grep sudo
to find all commands inhistory
withsudo
).