Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I want to see how many interfaces(ethernet cards) are
working using single command?

Answers were Sorted based on User's Feedback



I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / friend

mii-tool

Is This Answer Correct ?    21 Yes 2 No

I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / shrikant

ifconfig
OR
ifconfig -a

Is This Answer Correct ?    15 Yes 0 No

I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / rallapalli

#ifconfig -a

except loopback

Is This Answer Correct ?    4 Yes 0 No

I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / viren

lspci -n | grep 200


class 200 is the address of ethernet adapter

Is This Answer Correct ?    2 Yes 0 No

I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / alf55

The command:

ifconfig -a | (grep -E 'Link encap:|inet6 addr|inet addr:' |
grep -vE 'inet addr:|inet6 addr')

Would result with an output similar to:

eth0 Link encap:Ethernet HWaddr 00:90:f5:b7:6a:1c
lo Link encap:Local Loopback
sit0 Link encap:IPv6-in-IPv4
wlan0 Link encap:Ethernet HWaddr 00:24:d7:a7:16:c0

So the command:

ifconfig -a | (grep -E 'Link encap:|inet6 addr|inet addr:' |
grep -vE 'inet addr:|inet6 addr') | wc -l

would produce the count.

The problem here is that it would also count usages such as
"eth0:0".

To not count those devices use:

ifconfig -a | (grep -E 'Link encap:|inet6 addr|inet addr:' |
grep -vE 'inet addr:|inet6 addr:|:[0-9][0-9]*') |wc -l

Is This Answer Correct ?    1 Yes 0 No

I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / sanil

mii-tool
ifconfig -a

Is This Answer Correct ?    1 Yes 1 No

I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / venkat

lot of single commands:

ifconfig
mii-tool
arp
iftracf

Is This Answer Correct ?    0 Yes 1 No

I want to see how many interfaces(ethernet cards) are working using single command?..

Answer / vel

#ethtool

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Linux Commands Interview Questions

What is the use of finger command in linux?

0 Answers  


What are system commands?

0 Answers  


If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?

0 Answers  


what is Bourne shell.

1 Answers   Google, HCL, Infosys,


What is DISM command?

0 Answers  


How use more command in linux?

0 Answers  


Explain Backup Managment commands in Linux.

5 Answers  


What is makefile in unix?

0 Answers  


hi friends how to reinstall the grub.conf file. once i delete the grub file in perminatle ofter how to get back that file. plz send me ans. regards. madhu.m

5 Answers  


Explain about system and user utilities?

0 Answers  


What is c++ makefile?

0 Answers  


What is the role of the Linux kernel?

1 Answers  


Categories