Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. # Step 1: open terminal.
  2.  
  3. # Step 2: nano ~/.bash_profile
  4.  
  5. # Step 3: Add the following code below
  6.  
  7. alias my-ip='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2'
  8.  
  9. # Step 4: save file and restart terminal.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement