Hard and Soft Links Linux

Links: shortcuts to files or directories.
  • Soft links are similar to windows shortcuts.

  • Hard links are just different names for the same file.

You might be running out of space based on use%, used, and available numbers.

Inodes contain:

  • File Type

  • File Size

  • Ownership - UID and GID

  • Permissions

  • Timestamps

  • Link Count - # of hard links pointing to the file

  • Data Block Pointers - indicate where the actual data is stored

Block | Inode | Data area |


Rwx Rwx Rwx

Green = Owner Blue = Group, Yellow = Others R = Read, w = write, x = execute

chmod command changes permissions (chmod 777 changes everyone’s perms to rwx)

Link command: ln [name] [linkname]

(-s for soft link)

Same inode (394363) and links (2)

Just like another shortcut to a file



find /home/student15 -inum [#]

-inum = inode number


alias command: custom shortcut for a command

rm becomes rm -i