On 1/9/07, James G. Sack (jim) <[EMAIL PROTECTED]> wrote:
Lan Barnes wrote:
> On Tue, January 9, 2007 10:13 am, Carl Lowenstein wrote:
>> On 1/9/07, Lan Barnes <[EMAIL PROTECTED]> wrote:
>>>
>>> The same three appear in iwconfig -- wlan0, wifi0, and lo. I haven't
>>> checked lsmod and am at work ... but the two w***0's are getting created
>>> _somewhere_.
>>>
>> A piece of miscellaneous information that might help dispel some
>> confusion:
>> In a Fedora system, there are networking configuration files that are
>> all hard linked together, so they are really only one file with three
>> names.  Below is an example with only eth0 present.
>>
>
> So if I'm reading this right ...
>
> EDIT THIS
>> /etc/sysconfig/network-scripts/ifcfg-eth0
>
> THIS IS A LINK
>> /etc/sysconfig/networking/devices/ifcfg-eth0
>
> THIS IS A LINK, TOO
>> /etc/sysconfig/networking/profiles/default/ifcfg-eth0
>>
>
> How'm I doing, coach?
>

additional context for hard links (in case any newbies are listening):

you can list them with the -i option to show inodes
- - -
ls -i /etc/sysconfig/networking/profiles/default/ifcfg-eth0 \
  /etc/sysconfig/networking/devices/ifcfg-eth0 \
  /etc/sysconfig/network-scripts/ifcfg-eth0
2057717 /etc/sysconfig/networking/devices/ifcfg-eth0
2057717 /etc/sysconfig/network-scripts/ifcfg-eth0
2057717 /etc/sysconfig/networking/profiles/default/ifcfg-eth0

or you can stat them and pick out the inodes
- - -
stat /etc/sysconfig/networking/profiles/default/ifcfg-eth0 \
  /etc/sysconfig/networking/devices/ifcfg-eth0 \
  /etc/sysconfig/network-scripts/ifcfg-eth0 | grep Inode
Device: fd00h/64768d    Inode: 2057717     Links: 3
Device: fd00h/64768d    Inode: 2057717     Links: 3
Device: fd00h/64768d    Inode: 2057717     Links: 3


If you didn't know they were there, or forgot the names, you can find them by:

$ cd /etc
$ sudo find . -type f -links +1 -print | xargs ls -li | sort -n

Find files with more than 1 link, list with inode number, and sort to
bring like items together
Use "sudo" to avoid messages from trying to look in places where mere
mortals can't go.

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to