srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-06-02 17:12:42 +0200
committersrdusr <[email protected]>2023-06-02 17:12:42 +0200
commit71ee14f26ab5959f8341c6aee688c4044a97991f (patch)
tree6880a76aaaec4746886cbf82b3f2311900fa77b5 /tools
parentd5cc9e21cfaeb721c9acce81595c37fc685151a8 (diff)
downloadnotes-71ee14f26ab5959f8341c6aee688c4044a97991f.tar.gz
notes-71ee14f26ab5959f8341c6aee688c4044a97991f.zip
Add another command to get ip address
Diffstat (limited to 'tools')
-rw-r--r--tools/ssh.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/ssh.md b/tools/ssh.md
index 8d71321..9947617 100644
--- a/tools/ssh.md
+++ b/tools/ssh.md
@@ -16,6 +16,7 @@
`$ nmcli -p device show`
`$ ip route get 1.2.3.4 | awk '{print $7}'`
`$ curl ifconfig.me`
+`$ ifconfig 2> /dev/null | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '[0-9.]*'`
* Windows