Changes

Jump to: navigation, search

Tutorial8: Links / Process Management

202 bytes added, 11:47, 6 March 2021
INVESTIGATION 1: LINKING FILES
# Issue a Linux command to confirm that the '''~/links''' directory has been removed.<br><br>
# Issue the following Linux command to view the contents of your linked file in your '''home''' directory:<br><span style="color:blue;font-weight:bold;font-family:courier;">cat ~/data-file.hard.lnk</span><br><br>What do you notice? What does this tell you about hard links?<br><br>We will now learn how to create '''symbolic links'''.<br><br>
# Issue the following Linux command to create a directory called '''~/links2''':<br><span style="color:blue;font-weight:bold;font-family:courier;">mkdir ~/links2</span><br><br>[[Image:symbolic-link-inode1.png|thumb|right|450px|'''Symbolic links''' are '''pointers''' (i.e. pathnames) to '''regular files''' and '''directories'''. They do '''NOT''' share the same '''i-node'''.]]
# Issue the <span style="font-weight:bold;font-family:courier;">ls</span> command to confirm that the directory called '''~/links2''' exists.<br><br>
# Use a text editor to create a file called <span style="font-weight:bold;font-family:courier;">~/links2/text-file.txt</span><br><br>
13,420
edits

Navigation menu