From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Create and manage hard links

Create and manage hard links

- [Instructor] In this lecture, we'll look at how Linux manages hard links. To understand hard links and soft links, first, we must learn some very basic things about filesystems. Let's imagine a Linux computer is shared by two users, Aaron and Jane. Aaron logs in with his own username and password, and Jane logs in with her own username and password. This lets them use the same computer but have different desktops, different program settings and so on. Now, Aaron takes a picture of the family dog and saves it into /home/aaron/pictures/family_dog.jpg. Let's simulate a file like this. Now with this, we created a file at Pictures/family_dog.jpg and stored the text "Picture of Milo the dog" inside. Now there's a command in Linux that lets us see some interesting things about files and directories. Now we'll notice an inode number. What is this? Filesystems like XFS, ext4, and others keep track of data with the help of inodes. Our picture might have blocks of data scattered all over the…

Contents