Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Step 1: open terminal.
- # Step 2: nano ~/.bash_profile
- # Step 3: Add the following code below
- alias my-ip='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2'
- # Step 4: save file and restart terminal.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement