From 0caa63cc905c8d84a5cce78b56533db376c2d9f3 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sat, 4 Sep 2021 16:36:59 -0700 Subject: [PATCH] updated linux notes --- linux_notes.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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