history displays a list of all commands you have run on the terminal since the history list was last cleared. It is invaluable for referring back to a big complex command or set of commands you ran at some point in the past. The -c flag clears that history.
Can somebody please tell me what
history -c
is?history displays a list of all commands you have run on the terminal since the history list was last cleared. It is invaluable for referring back to a big complex command or set of commands you ran at some point in the past. The -c flag clears that history.
dont you also need history -w to save it?
on ubuntu -c doesnt actually clear it unless you also use -w
What does it do again?
🤣
Fuck, I just cleared my history.