Ifconfig: command not found

ifconfig doesn’t work. I need it to find the ip address my computer is using.

Use ip instead.

ifconfig is depricated.

To get your interface details just run ip addr.

1 Like

If you must have it:
it is in core/net-tools
So just install net-tools and you have it.

1 Like
1 Like

I had net-tools on one computer and not the other. That’s why I was confused.

What was the ultimate goal?

Having ifconfig
or
finding out the ip address your computer is using?

You got responses to both objectives.

It can be done without ifconfig - and even better, more elegantly (in my opinion)
as described in the tutorial @freggel.doe linked you to

ip -br a
lo               UNKNOWN        127.0.0.1/8 ::1/128 
enp4s0           DOWN           
wlan0            UP             192.168.20.140/24 
virbr0           DOWN           192.168.122.1/24

Thanks @freggel.doe - I didn’t know this and learned something!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.