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.


Linux tutorials: intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2
Caine 2.0: Autopsy Cli PartRec Files FileRec Browser FFoxForensics Carving
Caine 2.5.1: Essentials | Basic
Useful: Quiz | Forums | Privacy Policy | Terms and Conditions
Site Links:XMLZoo ActiveSQL ProgZoo SQLZoo

Copyright @ 2004-2012 Gordon Russell. All rights reserved.