![]() |
|
|
google unix.com
|
|||||||
| Forums | Casino | Register | Forum Rules | Links | Albums | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 08:12 PM |
| san lv showing old fs | itik | AIX | 2 | 05-07-2008 07:50 AM |
| tar -xvf is showing error | Renjesh | SUN Solaris | 10 | 04-17-2008 03:50 AM |
| command to know the IP address | suri | Shell Programming and Scripting | 1 | 03-14-2007 02:57 AM |
| Mac address - what is line command to find and active new card | wmetz | IP Networking | 1 | 03-19-2002 03:44 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Hi everyone, nice forum!
I need to know if there's a command that will show the IP Address of the machine you are logged into. Eg when you type hostname it returns the name of the machine, I need one that returns the IP address only. Can anyone help or suggest commands that are almost what I want? Thanks. |
| Sponsored Links |
|
||||
|
ifconfig -a on Solaris would give you the following type of info - to get the same on HP-UX you would have to do ifconfig lan1 (or specific interface - gather that info from lanscan)
$ ifconfig -a hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 1 inet 10.14.6.6 netmask fffffc00 broadcast 10.14.6.255 lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 2 inet 127.0.0.1 netmask ff000000 On HP-UX: $ lanscan Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI Path Address In# State NamePPA ID Type Support Mjr# 8/4/2/0 0x0060B0F93BA9 1 UP lan1 snap1 1 ETHER Yes 119 $ ifconfig lan1 lan1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> inet 10.14.8.2 netmask fffffc00 broadcast 10.14.8.255 |
![]() |
| Bookmarks |
| Tags |
| linux, linux commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|