Get IP address and MAC address

Hi there!
How can get ip address and mac address from command shell without root attributes(I can’t use ‘ifconfig’).
Thank you in advance.

And why can you use ifconfig?

/sbin/ifconfig

aecordoba wrote:
> Hi there!
> How can get ip address and mac address from command shell without root
> attributes(I can’t use ‘ifconfig’).
> Thank you in advance.
>
>

/sbin/ifconfig

Vahis

aecordoba wrote:
> Hi there!
> How can get ip address and mac address from command shell without root
> attributes(I can’t use ‘ifconfig’).
> Thank you in advance.

Use /sbin/ifconfig. It works for a normal user, it just is not in your
path.

LOL

What timing.

@aecordoba

Use a search engine and search for “Linux Environment Variables” or “Linux PATH”.

Thank you, very much!

alternatively use

ip maddr

Thank you, Robertple4!
I didn’t know ‘ip’ command. It’s very useful for me!