Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256257

Re: what's the right way to resolve localhost's IPs

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: what's the right way to resolve localhost's IPs
Date 2023-03-22 02:20 +0100
Message-ID <GbViV-ebLW-3@gated-at.bofh.it> (permalink)
References <GbViV-ebLW-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Mar 22, 2023 at 09:12:19AM +0800, fh@dnsbed.com wrote:
> In my shell script, how to get the localhost's IPs (eth0 and eth1)
> correctly?
> I know I can run 'ifconfig' and grep etc, but it's maybe not that graceful.

https://mywiki.wooledge.org/IpAddress

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

Re: what's the right way to resolve localhost's IPs Greg Wooledge <greg@wooledge.org> - 2023-03-22 02:20 +0100

csiph-web