diff --git a/linux_notes.txt b/linux_notes.txt index 6c5cf79f..f3221562 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -88,6 +88,18 @@ ss To display the history of last logged in users: last +To display your previous commands: +history + +To find a specific command in history: +history | grep + +Then from there you should be able to use that command using the id number returned: +!365 + +To clear your history: +history -c + To display your current external/public IP address: curl ifconfig.me