Which of the following commands display the number of bytes transmitted and received via the eth0 network interface? (Choose two.)
Which of the following commands display the number of bytes transmitted and received via the eth0 network interface? (Choose two.)
To display the number of bytes transmitted and received via the eth0 network interface, you can use 'ifconfig eth0' and 'ip -s link show eth0'. The 'ifconfig' command provides detailed information about the network interfaces, including the byte counts for transmission (TX) and reception (RX) for 'eth0'. Similarly, the 'ip -s link show eth0' command gives detailed statistics for the specified network interface, including the number of bytes transmitted and received. Other presented commands do not provide this specific information or are not valid for this purpose.
Correct answer is " D, E "
please proof if you say something like that
[thuan@rhel7 ~]$ ip -s link show ens33 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 00:0c:29:fa:d9:ce brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 1726384 1291 0 0 0 0 TX: bytes packets errors dropped carrier collsns 26453 273 0 0 0 0 D and E correct
I have tried all the given commands: A B and C only return errors. D is correct E is correct You can try it, just change the name of the network card
D and E are the correct, other commands do not work: $ ifconfig enp0s3 enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::67a:5b4c:48bd:1f76 prefixlen 64 scopeid 0x20<link> ether 08:00:27:d7:92:97 txqueuelen 1000 (Ethernet) RX packets 119434 bytes 94919173 (90.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 71324 bytes 13441351 (12.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 $ ip -s link show enp0s3 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 08:00:27:d7:92:97 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 94919173 119434 0 0 0 5430 TX: bytes packets errors dropped carrier collsns 13441351 71324 0 0 0 0 $
Only those two commands display the number of bytes transmitted and received via the eth0 network interface. My answer its also D and E
Tested in Debian
https://man7.org/linux/man-pages/man8/ip.8.html
D e E provato su macchina virtuale todo bien aloha
Agreed. The correct answer is D and E. Why? ☞ A simple entering of the commands allowed me to discern which were the correct answers. The commands on A,B,C are invalid when entered in a bash prompt running on Ubuntu 20.04.
DE for sure..Just test them on any Linux distro and look for RX and TX
D and E are correc tanswers, tested all commands on a different eth device
D,E Tested on debian.
Tested on ubuntu
D & E Correct answer.
I would say C and E why ? Because according to the man page Replacement for netstat -i is ip -s link. https://linux.die.net/man/8/netstat
omg.. i was wrong it is D and E because as i mentioned, C was replaced and with D you can always see the packets
https://man7.org/linux/man-pages/man8/ip.8.html
C shows a packet count, not byte.