How to show ifconfig content?


#1

when i type “ifconfig” command, it is nothing happen.
Can someone tell me how to show ifconfig content?

Thank you very much
Austin


#2

hi,

i suppose that by nothing, you mean something like that:

bash: ifconfig: command not found

I am going to assume that you are using Debian, in which case you need to run with admin privileges:

sudo ifconfig


#3

you can also get similar information with the command

ip addr

Full Disclosure: I am an employee of Qualcomm Canada, any opinions I may have expressed in this or any other post may not reflect the opinions of my employer.


#4

Thank you for reply.

I just want to know the network interface (like lo, wlan0 …) status, so i type ifconfig in 410c console/adb shell, but get nothing, nothing happen, and not command not found.


#5

Hi Austin,

You should have mentioned that you’re using Android. :wink:
Use netcfg instead of ifconfig.

HTH


#6

Oh oh, sorry, it’s my mistake.
Thank you vchong.

netcfg can be used, thanks

Austin