network Utility Tools

I’m stuck on a C Programming question and need an explanation.

i attached the questions

1. Write the command you would use to accomplish the following tasks:

1. locate the hosts file (hint: hosts file is located in the WindowsSystem32driversetc directory)

2. Display the content of the hosts file.

3. create a directory named temp

4. copy the file /etc/hosts into your new directory

5. display the content of the file you copied to your terminal (Hint: type, cat, more, etc.

6. delete the directory you created

– what is your IP address?

the rest on the attachement

– what is your default gateway?

– what is your subnet mask?

Posted in Uncategorized