what is the command to get my ip ? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

what is the command to get my ip ?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-25-2005
umen umen is offline
Registered User
 
Join Date: Aug 2005
Last Activity: 21 July 2014, 10:21 AM EDT
Posts: 261
Thanks: 0
Thanked 0 Times in 0 Posts
what is the command to get my ip ?

is there any build in command that gives you the local ip ?
Sponsored Links
    #2  
Old 12-25-2005
splinter.cell splinter.cell is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 25 December 2005, 3:53 PM EST
Location: USA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Java try this

$ uname -a
This gives you system info
Sponsored Links
    #3  
Old 12-26-2005
Sergiu-IT's Avatar
Sergiu-IT Sergiu-IT is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 12 June 2014, 6:12 PM EDT
Location: Cluj
Posts: 137
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by umen
is there any build in command that gives you the local ip ?
Try ifconfig.
    #4  
Old 12-26-2005
shashikandi shashikandi is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 6 January 2010, 5:20 AM EST
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
ifconfig -a
Sponsored Links
    #5  
Old 12-27-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
 
Join Date: Mar 2005
Last Activity: 5 July 2014, 11:14 AM EDT
Location: classification algos
Posts: 3,203
Thanks: 19
Thanked 30 Times in 27 Posts
Quote:
Originally Posted by shashikandi
ifconfig -a
i believe you need to specify the interface along with ifconfig


Code:
ifconfig <interface>

Sponsored Links
    #6  
Old 12-27-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
AFK
 
Join Date: Dec 2004
Last Activity: 28 July 2014, 9:39 AM EDT
Location: UK
Posts: 2,351
Thanks: 0
Thanked 6 Times in 6 Posts
The ifconfig commands often require superuser privs. Use netstat instead. The syntax is

Code:
netstat -in

Sponsored Links
    #7  
Old 12-27-2005
eugrus's Avatar
eugrus eugrus is offline
Registered User
 
Join Date: Jan 2005
Last Activity: 23 June 2014, 6:17 AM EDT
Location: Russia
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
The ifconfig commands often require superuser privs
Not for just ifconfig without keys.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing command output from one command to the next command in cshell kaaliakahn UNIX for Dummies Questions & Answers 2 02-10-2012 04:59 PM
unix command : how to insert text at the cursor location via command line? xib.be UNIX for Advanced & Expert Users 0 12-22-2010 05:45 PM
Need help! command working ok when executed in command line, but fails when run inside a script! 4dirk1 Shell Programming and Scripting 4 12-02-2010 05:47 AM
awk command in script gives error while same awk command at prompt runs fine: Why? catalys Shell Programming and Scripting 4 09-20-2010 10:07 PM
awk/sed Command : Parse parameter file / send the lines to the ksh export command rajan_san Shell Programming and Scripting 4 11-06-2008 12:29 PM



All times are GMT -4. The time now is 05:26 AM.