Changes

Jump to: navigation, search

Tutorial8: Links / Process Management

6 bytes added, 13:18, 6 March 2021
INVESTIGATION 1: LINKING FILES
# Issue the following Linux command to create a directory called '''~/links''':<br><span style="color:blue;font-weight:bold;font-family:courier;">mkdir ~/links</span><br><br>
# Issue the '''ls''' command to confirm that the directory '''~/links''' exists.<br><br>
# Use a text editor to create a file called <span style="font-weight:bold;font-family:courier;">~/links/data-file.txt</span><br>(i.e. <u>without</u> changing to the links directory): </span>.<br><br>
# Enter the following text displayed below:<br><br><span style="font-family:courier;font-weight:bold;">This is line 1<br>This is line 2<br>This is line 3<br><br></span>[[Image:hard-link-inode1.png|thumb|right|450px|'''Hard links''' <u>share</u> the same '''i-node''' with regular files on a Unix / Linux filesystem.]]
# Save your editing session and exit your text editor.<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>
# 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>(i.e. <u>without</u> changing to the '''links2 ''' directory): . <br><br>[[Image:symbolic-link-inode1.png|thumb|right|500px|'''Symbolic links''' are '''pointers''' (i.e. pathnames) to '''regular files''' and '''directories'''.<br>They do '''NOT''' share the same '''i-node'''.]]
# Enter the following text displayed below:<br><br><span style="font-family:courier;font-weight:bold;">This is line one<br>This is line two<br>This is line three<br><br></span>
# Save your editing session and exit your text editor.<br><br>
13,420
edits

Navigation menu