Ln: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[Linux#Commands|Linux]]
* [[Linux#Commands|Linux]]
=Create a Hard Link=
ln <''target-file''> <''hard-link-name''>
For more details, see [[Linux_7_Storage_Concepts#Hard_Link|hard links]].


=Remove a Symbolic Link that Points to a Directory=
=Remove a Symbolic Link that Points to a Directory=


<pre>
rm <link-name>
rm <link-name>
</pre>


but ''avoid appending a / to the name of the link''.
but ''avoid appending a / to the name of the link''.
=Force=
Regular file
-f
Directory
-F

Latest revision as of 00:43, 16 October 2019

Internal

Create a Hard Link

ln <target-file> <hard-link-name>

For more details, see hard links.

Remove a Symbolic Link that Points to a Directory

rm <link-name>

but avoid appending a / to the name of the link.

Force

Regular file

-f 

Directory

-F