Often I'm asked for IP information. If I don't know it from the top of my head, I will use the ifconfig command to ascertain it. This command gives you interface type, Internet Protocol address (IP), netmask, and broadcast address.
#ifconfig -a (the -a gives a verbose output of this command)
Obtain only the IPs
#ifconfig -a | grep inet | awk '{print $2}'
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment