What type of connection is between files in /etc/init.d and /etc/rc.d/init.d?
Hello, I know what this two listed above directories are. But I really don't understand what connect between files in them. I mean that:
any of them isn't symbolic link:
I don't see: '->' indicator in ls -l that say to where file links
any of them isn't hard link:
the hard link counter in ls -l is 1
Here is some outputs:
[root@andreys-comp init.d]# pwd
/etc/init.d
[root@andreys-comp init.d]# ls -l xfs
-rwxr-xr-x 1 root root 3902 Jul 12 2007 xfs
[root@andreys-comp init.d]# pwd
/etc/rc.d/init.d
[root@andreys-comp init.d]# ls -l xfs
-rwxr-xr-x 1 root root 3902 Jul 12 2007 xfs
Example of hard links. Put attantion to second column in ls output:
[root@andreys-comp init.d]# ln file1 file2
[root@andreys-comp init.d]# ls -l file*
-rw-rw-r-- 2 root root 0 Aug 7 00:42 file1
-rw-rw-r-- 2 root root 0 Aug 7 00:42 file2
Example of soft link. Put attention to '->' indicator in ls output:
[root@andreys-comp init.d]# ln -s file2 file3
[root@andreys-comp init.d]# ls -l file3
lrwxrwxrwx 1 root root 5 Aug 7 00:44 file3 -> file2
With all this, when I modify one of the files in one of the directories, automatically the appropriate file in second directory modifies too.
Any ideas?
Thank you for ahead.
Last edited by Rodnower; 08-07-2010 at 03:33 AM.
|