Difference between revisions of "NAD710 Lab 4 Answers"
Milton.paiva (talk | contribs) |
Milton.paiva (talk | contribs) |
||
Line 6: | Line 6: | ||
'''2. Which file stores the static IP addresses ?''' | '''2. Which file stores the static IP addresses ?''' | ||
/etc/sysconfig/networking/devices/ifcfg-eth1 | /etc/sysconfig/networking/devices/ifcfg-eth1 | ||
+ | |||
+ | In my opinion the file is: | ||
+ | /etc/sysconfig/network-scripts/ifcfg-eth0 | ||
'''3. Which file stores the static hostname to IP address mapping ?''' | '''3. Which file stores the static hostname to IP address mapping ?''' | ||
/etc/sysconfig/networking/profiles/default/hosts | /etc/sysconfig/networking/profiles/default/hosts | ||
+ | |||
+ | How about: | ||
+ | /etc/hosts | ||
'''4. Which file stores the DNS servers IP addresses ?''' | '''4. Which file stores the DNS servers IP addresses ?''' | ||
/etc/sysconfig/networking/profiles/default/resolv.conf | /etc/sysconfig/networking/profiles/default/resolv.conf | ||
+ | |||
+ | I think the file is: | ||
+ | /etc/resolv.conf | ||
'''5. What information is stored in /etc/sysconfig/network file ?''' | '''5. What information is stored in /etc/sysconfig/network file ?''' | ||
− | This file stores information like computer's hostname. | + | This file stores information like computer's hostname and default gateway. |
This file looks like | This file looks like | ||
Line 21: | Line 30: | ||
'''6. Would you be able to construct a single pipe line command using "find", "xargs", and "tar" to copy all the files (with the same directory structure) found by the "find" command to the currect directory ?''' | '''6. Would you be able to construct a single pipe line command using "find", "xargs", and "tar" to copy all the files (with the same directory structure) found by the "find" command to the currect directory ?''' | ||
+ | |||
+ | ---- | ||
+ | CHALLENGER | ||
+ | |||
'''7. Pick one of the following system configuration program and determine what files are being used to store the configure parameters:''' | '''7. Pick one of the following system configuration program and determine what files are being used to store the configure parameters:''' |
Revision as of 10:51, 29 September 2008
Questions
1. Which file stores the computer's host name?
/etc/sysconfig/network
2. Which file stores the static IP addresses ?
/etc/sysconfig/networking/devices/ifcfg-eth1
In my opinion the file is:
/etc/sysconfig/network-scripts/ifcfg-eth0
3. Which file stores the static hostname to IP address mapping ?
/etc/sysconfig/networking/profiles/default/hosts
How about:
/etc/hosts
4. Which file stores the DNS servers IP addresses ?
/etc/sysconfig/networking/profiles/default/resolv.conf
I think the file is:
/etc/resolv.conf
5. What information is stored in /etc/sysconfig/network file ?
This file stores information like computer's hostname and default gateway. This file looks like NETWORKING=yes HOSTNAME=mohak
6. Would you be able to construct a single pipe line command using "find", "xargs", and "tar" to copy all the files (with the same directory structure) found by the "find" command to the currect directory ?
CHALLENGER
7. Pick one of the following system configuration program and determine what files are being used to store the configure parameters:
a. system-config-firewall
- /etc/sysconfig/iptables
- /proc/net/ip_tables_matches
- /proc/net/ip_tables_names
- /proc/net/ip_tables_targets
- Milton Paiva
b. system-config-printer
- list of files here
- your name here
c. system-config-users
- /etc/group- >>> Saves new users and UID's in this file.
- /etc/sysconfig/system-config-users >>> Each time you open this utility, this file gets edited.
- /etc/passwd >>> This file stores the users, UID's, users home directory and users login shell
- /etc/gshadow >>> This file stores a new group created.
- Mohak Vyas
d. system-config-display
- list of files here
- your name here
e. system-config-services
- list of files here
- your name here