|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there a C shell command (or script anyone knows of) that will return the IP number of the system? I know that 'hostname' returns the host name, but I need the IP number, and I cannot assume access to 'nslookup'.
![]() |
| Sponsored Links | |
|
|
|
#2
|
||||
|
||||
|
You could try using "ifconfig -a".
|
| Sponsored Links | ||
|
|
|
#3
|
|||
|
|||
|
ifconfig -a is a command i use on both linux and solaris platforms and it gives me details of my NIC, including IP address.
|
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I get only the number of the UID from id command? | umen | UNIX for Dummies Questions & Answers | 5 | 05-09-2006 05:11 AM |
| shell magic number with a - | vino | Shell Programming and Scripting | 3 | 07-08-2005 11:23 PM |
| Limit number of user accessing to SCO UNIX System | trinhnguyen | UNIX for Dummies Questions & Answers | 1 | 03-09-2005 09:29 AM |
| AIX Unix.. number of users on system in a particular group | afiore | UNIX for Advanced & Expert Users | 1 | 06-26-2003 11:19 AM |
| shell to number and to string | xiamin | Shell Programming and Scripting | 1 | 11-06-2001 07:59 AM |
|
|