3be715d7b6
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@137 a672b425-5310-4d7a-af5c-997e18724b81
50 lines
912 B
HTML
50 lines
912 B
HTML
---
|
|
layout: page
|
|
category: Filesystem
|
|
tags: Hard links
|
|
author: Ricardo Vivanco
|
|
title: fs
|
|
previous-page: pages/fs/Hard
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<html>
|
|
<head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
|
|
|
|
<h1>Hard and Symbolic links</h1>
|
|
|
|
<p>In Unix-like operating systems such as Linux, “everything is a file” and a file
|
|
is fundamentally a link to an inode (a data structure that stores everything about a
|
|
file apart from its name and actual content).
|
|
A hard link is a file that points to the same underlying inode, as another file.
|
|
In case you delete one file, it removes one link to the underlying inode. Whereas a
|
|
symbolic link (also known as soft link) is a link to another filename in the filesystem.
|
|
Another important difference between the two types of links is that hard links can only
|
|
work within the same filesystem while symbolic links can go across different filesystems.
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</header>
|
|
</body>
|
|
|
|
</html>
|