GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    mhoye (mhoye@mastodon.social)'s status on Friday, 15-Nov-2024 11:47:50 JST mhoye mhoye

    Lazyweb, a question: what is the simplest command that will give me a Linux machine’s IP address, and only that?

    In conversation about 6 months ago from mastodon.social permalink
    • Embed this notice
      Michał "rysiek" Woźniak · 🇺🇦 (rysiek@mstdn.social)'s status on Friday, 15-Nov-2024 11:47:50 JST Michał "rysiek" Woźniak · 🇺🇦 Michał "rysiek" Woźniak · 🇺🇦
      in reply to

      @mhoye oh dear… :blobcatpopcornnom:

      In conversation about 6 months ago permalink
    • Embed this notice
      Michał "rysiek" Woźniak · 🇺🇦 (rysiek@mstdn.social)'s status on Friday, 15-Nov-2024 11:54:20 JST Michał "rysiek" Woźniak · 🇺🇦 Michał "rysiek" Woźniak · 🇺🇦
      in reply to

      @mhoye

      `ip -br a` is probably close enough to what you want.

      if you know the interface name you can zero-in on it with:

      `ip -br a s eth0`

      Thing is, an interface can have multiple IPv4 and IPv6 addresses, obviously. In other words, "Linux machine's IP address" is just not clear enough a query to get a clear answer. You kind of need to narrow it down *somehow*, and that will be very dependent on the specific context of what you're trying to do…

      In conversation about 6 months ago permalink
    • Embed this notice
      Xenotar (xenotar@mastodon.social)'s status on Friday, 15-Nov-2024 11:54:32 JST Xenotar Xenotar
      in reply to

      @mhoye
      old school: ifconfig -a
      new school: ip address

      In conversation about 6 months ago permalink
    • Embed this notice
      Darcy Casselman (flyingsquirrel@mastodon.social)'s status on Friday, 15-Nov-2024 12:51:30 JST Darcy Casselman Darcy Casselman
      in reply to

      @mhoye `hostname -I`

      In conversation about 6 months ago permalink
    • Embed this notice
      Jon Dubovsky (jond@mastodon.social)'s status on Friday, 15-Nov-2024 12:51:30 JST Jon Dubovsky Jon Dubovsky
      in reply to
      • Darcy Casselman

      @flyingsquirrel @mhoye second'ing this: hostname -I (capital I) will give you the non-loopback addr (or addrs, if the machine has multiple)

      In conversation about 6 months ago permalink
    • Embed this notice
      Michał "rysiek" Woźniak · 🇺🇦 (rysiek@mstdn.social)'s status on Friday, 15-Nov-2024 12:51:30 JST Michał "rysiek" Woźniak · 🇺🇦 Michał "rysiek" Woźniak · 🇺🇦
      in reply to
      • Darcy Casselman
      • Jon Dubovsky

      @jond ha! I learned something new today!

      @flyingsquirrel @mhoye

      In conversation about 6 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.