FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMMAND LINE INTERFACE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command syntax would allow you extract the numbers 192.168 from the ifconfig command?
A
ifconfig |grep 192.168
B
Ifconfig |Grep 192.168
C
ifconfig |find 192.168
D
Ifconfig |Find 192.168
Explanation: 

Detailed explanation-1: -You can use the ifconfig command to assign an address to a network interface and to configure or display the current network interface configuration information. The ifconfig command must be used at system startup to define the network address of each interface present on a system.

Detailed explanation-2: -Typically, ifconfig can only be used under a superuser account in your terminal. A list of all your network interfaces will appear. Following the heading of the interface whose IP address you’re searching for, you will see a “inet addr:” section containing your IP address.

Detailed explanation-3: -The first line in the ifconfig command output includes the interface name and status flags currently associated with the interface. Also, the status line includes the maximum transmission unit (MTU) that is configured for the particular interface and an index number.

There is 1 question to complete.