Changes

Jump to: navigation, search

Tutorial8: Links / Process Management

9 bytes added, 08:51, 25 February 2021
INVESTIGATION 1: LINKING FILES
# 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 happened to this original file?<br>What does this mean in terms of creating hard-linked files?<br><br>
# Issue the following Linux command to create a hard-linked file in your '''home''' directory:<br><span style="color:blue;font-weight:bold;font-family:courier;">ln ~/links/data-file.txt ~/data-file.hard.lnk<br><br>
# Issue the following Linux command to compare all file's i-node numbers:<br><span style="color:blue;font-weight:bold;font-family:courier;">ls -i ~/links/data-file.txt ~/links/data-file.hard.lnk ~/data-file.hard.lnk'''</span><br><br>What do you notice about this all of those file's ''i-node'' numbernumbers?<br><br>
# Issue the following Linux command to check that you created those hard links: <br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week8-check-1</span><br><br>If you encounter errors, then view the feedback to make corrections, and then re-run the checking script.<br>If you receive a congratulation message that there are no errors, then proceed with this tutorial.<br><br>
# Issue the following Linux command to remove the '''~/links''' directory and its contents: <br><span style="color:blue;font-weight:bold;font-family:courier;">rm -rf ~/links</span><br><br>
13,420
edits

Navigation menu