If you can see this check that

next section            up prev page next page

Hard Link Example

Lets assume that the current working directory is /home/john. We wish to create a link 'hardfile2' within the sub-directory projects from the file 'hardfile'.

% date > hardfile  ( create the file )

% ls -l 
-rwx-xr-x  1 john users 605 Nov 18 12:25 hardfile

% ln hardfile project/hardfile2

% ls -l projects/hardfile2
-rwx-xr-x  2 john users 605 Nov 18 12:25 hardfile

The file 'hardfile' and its like 'hardfile2' are indistinguishable, if 'hardfile' is updated then 'hardfile2' is updated. Notice the link number has increased to 2. This would occur in both listings.


Tutlinks: intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2
Useful: Quiz Forums
Site Links:XMLZoo ActiveSQL ProgZoo SQLZoo