13,420
edits
Changes
→INVESTIGATION 1: LINKING FILES
# Use a text editor to edit <span style="font-weight:bold;font-family:courier;">~/links/data-file.txt</span> and add some lines to the bottom of that file.<br><br>
# Save your editing session and exit your text editor.<br><br>
# Issue the following Linux command: <br><span style="color:blue;font-weight:bold;font-family:courier;">cat ~/links/data-file.hard.lnk</span><br><br>What do You should notice that the hard linked file also contains the additional line(s) that you noticed what happened added to this linked the original file?. This is very useful for backing up your files <u>without</u> using the '''cp''' command!<br><br>
# Use a text editor to edit the hard-linked file '''~/links/data-file.txt.hard.lnk''' and add some additional lines to this file.<br><br>
# Save your editing session and exit your text editor.<br><br>