Jump to: navigation, search

Tutorial8: Links / Process Management

449 bytes added, 08:51, 3 February 2020
Linking Files
When a file has more than one link, you can remove any one link and still be able to access the file through the remaining links
Assume you used "vi" to create a new file, you create the first touch myfile.txtln myfile.txt myfile1.hard link (vi .lnkln myfile)To Create the 2nd, 3rd , etc.txt myfile2. hard links, use the command:.lnkln myfile link-name.txt ~/backups/myfile.hard.lnk
Create a new An advantage with hard links is that if one hard link remains (even if original file called “myfile”Run has been removed), the command “ls -il” data in that hard linked file is NOT lost. Also, hard links will automatically change when a change to display that original file or hard links occur since they share the same '''i- node number ''' and link counterin the eyes of the Unix/Linux OS, they are the same files.
A disadvantage of hard links are that they take-up extra space, you cannot hard link directory files, and you cannot hard link files from other Unix/Linux servers (since the inode number may already be used by the other Unix/Linux server).

Navigation menu