How to Use the ip Command in Linux: A Beginner’s Guide

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 41

  • @LevantinLynx
    @LevantinLynx 3 дня назад +33

    Very valuable bonus tip: if you type “ip -c a” the output is colored and way easier to read, especially in systems with a lot of network interfaces.

    • @cybernit3
      @cybernit3 3 дня назад +5

      Thank you looks a lot easier to read.

    • @HelloHelloXD
      @HelloHelloXD 3 дня назад +2

      Great tip

    • @Wampa842
      @Wampa842 3 дня назад +8

      One of the first things I do on new installations is put alias ip='ip --color=always' in .bashrc. I'll never understand why it isn't on by default.

    • @Felix-ve9hs
      @Felix-ve9hs 3 дня назад

      I haven’t worked with Linux for so long I forgot about it 😅

    • @FunctionGermany
      @FunctionGermany 3 дня назад +1

      ​@@Wampa842 it's probably not default because it might break tools that call the ip program and can't handle colored output.

  • @MrRedhawk16
    @MrRedhawk16 3 дня назад +6

    My number one linux channel

  • @plattrap
    @plattrap 3 дня назад +3

    Bonus tip is to use “ip -br a” which limits the output to just the ip addresses of each adapter. Extra “-4” limits to just the IPv4 addresses.

    • @FunctionGermany
      @FunctionGermany 3 дня назад +3

      -br -4 are awesome flags, thanks a lot. so much less clutter that i don't need 9/10 times.

    • @sandman4you
      @sandman4you 2 дня назад

      Excellent tip.

  • @kajraske2002
    @kajraske2002 3 дня назад +1

    Super neat! I like the straightforward explanation of how ip supercedes other commands, a lot of times it gets confusing seeing the same thing done different ways in different guides.
    Also the "watch" command is fantastic, watching that video immediately.

  • @neutral_positron
    @neutral_positron 2 дня назад

    Nice video. One day linux community will realise your importance.

  • @drescherjm
    @drescherjm 3 дня назад +2

    I need this one. I have used ifconfig for as long as I can remember (my linux usage goes back into the 1990s) however it's not default on the RHEL based systems I now use every day.

    • @htx80nerd
      @htx80nerd 2 дня назад

      Ya i hate that they took a long standing tool and removed it. Very annoying.

  • @mathieuberthalay21
    @mathieuberthalay21 2 дня назад

    Thank you for your video 🤩

  • @esra_erimez
    @esra_erimez 3 дня назад +2

    Hello wonderful person watching Jay's wonderful video.

  • @juliusmilo5959
    @juliusmilo5959 3 дня назад +1

    Very nice video...Thank You...

  • @Ranblv
    @Ranblv 2 дня назад

    very useful thank you

  • @phyowailin9847
    @phyowailin9847 3 дня назад +1

    ip command supports colored output with --color option.

  • @13thravenpurple94
    @13thravenpurple94 3 дня назад

    Amazing video! Thanks for sharing 👍

  • @gormhatre
    @gormhatre 3 дня назад

    Very useful commands and tips in this video. Do you have any video about more detailed networking.

  • @CarolSchimpf
    @CarolSchimpf 3 дня назад

    Thanks for sharing such valuable information! A bit off-topic, but I wanted to ask: My OKX wallet holds some USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). Could you explain how to move them to Binance?

  • @UnwalledGarden
    @UnwalledGarden 3 дня назад

    If I add IP addresses with the ip command, are the persistent across reboots, or do I have to use nmcli to ensure that?

  • @sujeeshmnd9988
    @sujeeshmnd9988 3 дня назад +1

    How ip addresse will restore automatically after bringing down and brought up the interfaces even after deleting that ip?

    • @FunctionGermany
      @FunctionGermany 3 дня назад +1

      this happens because the system is configured to use DHCP and not a static address. so when the interface goes up (through the command, restarting the machine, or plugging in ethernet cable) the system will ask on the network for an IP adress and the DHCP server (which is part of your router for most homes) will reply with an IP lease.

    • @philb1466
      @philb1466 2 дня назад

      ​@@FunctionGermany thanks for taking the time to explain this because I was wondering the same thing. So I understand now! 😊 👍

  • @SB-qm5wg
    @SB-qm5wg 3 дня назад +1

    I've always stuck with ifconfig and ifup/down

    • @spiffyh
      @spiffyh 3 дня назад +1

      Me as well. Probably because I came from a Unix background. I like the color option mentioned in the comments above though. ifconfig gives a little cleaner output though.

  • @sandman4you
    @sandman4you 2 дня назад

    Been checking your channel daily, waiting for your Fedora 41 review. So far.... crickets. Your review of Fedora 40 was the best of several Linux RUclips channels, so somewhat disappointing.

  • @CocolinoFan
    @CocolinoFan День назад

    Do you age in reverse? Why do you look younger then in your earlier videos?

  • @michaelrider
    @michaelrider 3 дня назад

    IPA😁

  • @Jemou-yd6pm
    @Jemou-yd6pm 3 дня назад +1

    Too much advertising.

  • @AlexDawson2020AD
    @AlexDawson2020AD 3 дня назад

    First!

  • @Satyam1010-N
    @Satyam1010-N 3 дня назад

    U r using ai voice? Its painful 😖