diff options
| author | srdusr <[email protected]> | 2023-06-02 17:12:42 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-06-02 17:12:42 +0200 |
| commit | 71ee14f26ab5959f8341c6aee688c4044a97991f (patch) | |
| tree | 6880a76aaaec4746886cbf82b3f2311900fa77b5 | |
| parent | d5cc9e21cfaeb721c9acce81595c37fc685151a8 (diff) | |
| download | notes-71ee14f26ab5959f8341c6aee688c4044a97991f.tar.gz notes-71ee14f26ab5959f8341c6aee688c4044a97991f.zip | |
Add another command to get ip address
| -rw-r--r-- | tools/ssh.md | 1 |
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 |