13,420
edits
Changes
→INVESTIGATION 1: LINKING FILES
# Issue the following Linux command to display ''i-node'' numbers for <u>both</u> files:<br><span style="color:blue;font-weight:bold;font-family:courier;">ls -li ~/links2/text-file.txt ~/links2/text-file.sym.lnk</span><br><br>What do you notice about both of these file's ''i-node'' numbers?<br>What do you notice about the size of the file <span style="font-weight:bold;font-family:courier;">~/links2/text-file.sym.lnk''</span>?<br>What '''pathname''' do you think this ''symbolic-linked'' file represents?<br><br>
# Issue the following Linux command to create the following '''symbolic link''' in your '''home''' directory: <br><span style="color:blue;font-weight:bold;font-family:courier;">ln -s ~/links2/text-file.txt ~/text-file.sym.lnk</span><br><br>
# Issue the following Linux command to display ''i-node'' numbers for all of those files:<br><span style="color:blue;font-weight:bold;font-family:courier;">ls -li ~/links2/text-file.txt ~/links2/text-file.sym.lnk ~/text-file.sym.lnk</span><br><br>What do you notice about all of those file's i-node numbers?<br>What is the file size of <span style="font-weight:bold;font-family:courier;">~/links2/text-file.txt?sym.lnk</span>?<br>What '''pathname''' do you think this ''symbolic-linked'' file contains?<br><br>
# Use a text editor to edit the '''symbolic''' link file called <span style="font-weight:bold;font-family:courier;">~/links2/text-file.sym.lnk</span><br>and add some lines to the bottom of that file.<br><br>
# Save your editing session and exit your text editor.<br><br>