Open main menu

CDOT Wiki β

Changes

Tutorial8: Links / Process Management

275 bytes added, 16:47, 4 February 2020
INVESTIGATION 1: LINKING FILES
# Issue a command to '''confirm''' you are located in your home directory.<br><br>
# 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 called '''~/links''' exists.<br><br>
# Use a text editor to create a file called '''~/links/data-file.txt'''<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>
# 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>
# xIssue the following Linux command to create a directory called '''~/links2''':<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 called '''~/links2''' exists.<br><br>
13,420
edits