Fixed myip alias (Before returned 403)
Added myipv6 alias to display public IPv6 (If available)
This commit is contained in:
parent
df5a22d9b5
commit
27bc9787aa
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ alias gl="git log --oneline --graph --decorate" # Pretty git log
|
|||
# --------------------------------------------------
|
||||
# Network Utilities
|
||||
# --------------------------------------------------
|
||||
alias myip="curl ifconfig.me" # Display public IP address
|
||||
alias myip="curl ident.me" # Display public IPv4 address
|
||||
alias myipv6='curl 6.ident.me 2>/dev/null | grep -Eo "[0-9a-fA-F:]+" || echo "IPv6 not available"' # Display public IPv6 address (If available)
|
||||
alias netstat="ss -tuln" # Show active network connections
|
||||
alias ping="ping -c 5" # Ping with 5 packets
|
||||
alias hosts="sudo $EDITOR /etc/hosts" # Edit hosts file
|
||||
|
|
Loading…
Add table
Reference in a new issue