<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://freebsdwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=Unlink</id>
		<title>Unlink - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=Unlink"/>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Unlink&amp;action=history"/>
		<updated>2026-05-04T16:08:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Unlink&amp;diff=5170&amp;oldid=prev</id>
		<title>Jimbo: (polishing)</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Unlink&amp;diff=5170&amp;oldid=prev"/>
				<updated>2005-07-12T10:23:38Z</updated>
		
		<summary type="html">&lt;p&gt;(polishing)&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:23, 12 July 2005&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This command &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;do &lt;/del&gt;exactly the same as [[rm]] : it removes files. If you have read the section about [[links]] you know that one file contents can be read and write &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;throw &lt;/del&gt;one or more &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;files thant's &lt;/del&gt;to hard links. So the [[unlink]] command is the exact oposite of the [[ln]] command : it removes one link, and if &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to &lt;/del&gt;more links are available for the file contents, it &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;can not be acceeded &lt;/del&gt;and will be overwritten &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;by &lt;/del&gt;other &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;information&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This command &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;does &lt;/ins&gt;exactly the same &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;thing &lt;/ins&gt;as [[rm]] : it removes files. If you have read the section about [[links]] you know that one file&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'s &lt;/ins&gt;contents can be read and write &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;through &lt;/ins&gt;one or more &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;directory entries thanks &lt;/ins&gt;to hard links. So the [[unlink]] command is the exact oposite of the [[ln]] command : it removes one link, and if &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;no &lt;/ins&gt;more links are available for the file contents, it &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;will effectively disappear from the filesystem, &lt;/ins&gt;and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;its contents &lt;/ins&gt;will &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;eventually &lt;/ins&gt;be overwritten &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as &lt;/ins&gt;other &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;data is written to the filesystem&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The number of hard links for a file can displayed by the [[ls]] command.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The number of hard links for a file can displayed by the [[ls]] command.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that the C programming language primitive for deleting files is :&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that the C programming language primitive for deleting files is : unlink()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;unlink()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:System Commands]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:2887:newid:5170 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Unlink&amp;diff=2887&amp;oldid=prev</id>
		<title>Smortex at 08:07, 12 July 2005</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Unlink&amp;diff=2887&amp;oldid=prev"/>
				<updated>2005-07-12T08:07:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This command do exactly the same as [[rm]] : it removes files. If you have read the section about [[links]] you know that one file contents can be read and write throw one or more files thant's to hard links. So the [[unlink]] command is the exact oposite of the [[ln]] command : it removes one link, and if to more links are available for the file contents, it can not be acceeded and will be overwritten by other information.&lt;br /&gt;
&lt;br /&gt;
The number of hard links for a file can displayed by the [[ls]] command.&lt;br /&gt;
&lt;br /&gt;
Note that the C programming language primitive for deleting files is :&lt;br /&gt;
 unlink()&lt;/div&gt;</summary>
		<author><name>Smortex</name></author>	</entry>

	</feed>