diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2010-05-19 08:58:23 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:43:05 +0200 |
commit | b76270bf9e6dd375e495fec92140a79a79415d27 (patch) | |
tree | 3dbed78b2279bf9f14207a16dc634b90995cbd40 /misc/slackbook/html/file-commands-link.html | |
parent | 5a12e7c134274dba706667107d10d231517d3e05 (diff) | |
download | current-b76270bf9e6dd375e495fec92140a79a79415d27.tar.gz |
Slackware 13.1slackware-13.1
Wed May 19 08:58:23 UTC 2010
Slackware 13.1 x86_64 stable is released!
Lots of thanks are due -- see the RELEASE_NOTES and the rest of the
ChangeLog for credits. The ISOs are on their way to replication,
a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD.
We are taking pre-orders now at store.slackware.com, and offering
a discount if you sign up for a subscription. Consider picking up
a copy to help support the project. Thanks again to the Slackware
community for testing, contributing, and generally holding us to a
high level of quality. :-)
Enjoy!
Diffstat (limited to 'misc/slackbook/html/file-commands-link.html')
-rw-r--r-- | misc/slackbook/html/file-commands-link.html | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/misc/slackbook/html/file-commands-link.html b/misc/slackbook/html/file-commands-link.html new file mode 100644 index 00000000..8a3784fa --- /dev/null +++ b/misc/slackbook/html/file-commands-link.html @@ -0,0 +1,105 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta name="generator" content="HTML Tidy, see www.w3.org" /> +<title>Aliasing files with ln</title> +<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /> +<link rel="HOME" title="Slackware Linux Essentials" href="index.html" /> +<link rel="UP" title="Handling Files and Directories" href="file-commands.html" /> +<link rel="PREVIOUS" title="Deletion: rm and rmdir" href="file-commands-deletion.html" /> +<link rel="NEXT" title="Process Control" href="process-control.html" /> +<link rel="STYLESHEET" type="text/css" href="docbook.css" /> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> +</head> +<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084" +alink="#0000FF"> +<div class="NAVHEADER"> +<table summary="Header navigation table" width="100%" border="0" cellpadding="0" +cellspacing="0"> +<tr> +<th colspan="3" align="center">Slackware Linux Essentials</th> +</tr> + +<tr> +<td width="10%" align="left" valign="bottom"><a href="file-commands-deletion.html" +accesskey="P">Prev</a></td> +<td width="80%" align="center" valign="bottom">Chapter 10 Handling Files and +Directories</td> +<td width="10%" align="right" valign="bottom"><a href="process-control.html" +accesskey="N">Next</a></td> +</tr> +</table> + +<hr align="LEFT" width="100%" /> +</div> + +<div class="SECT1"> +<h1 class="SECT1"><a id="FILE-COMMANDS-LINK" name="FILE-COMMANDS-LINK">10.7 Aliasing +files with <tt class="COMMAND">ln</tt></a></h1> + +<p><tt class="COMMAND">ln</tt>(1) is used to create links between files. These links can +be either hard links or soft (symbolic) links. The differences between the two kinds of +links were discussed in <a href="filesystem-structure-links.html">Section 9.3</a>. If you +wanted to make a symbolic link to the directory <tt class="FILENAME">/var/media/mp3</tt> +and place the link in your home directory, you would do this:</p> + +<table border="0" bgcolor="#E0E0E0" width="100%"> +<tr> +<td> +<pre class="SCREEN"> +<samp class="PROMPT">%</samp> <kbd class="USERINPUT">ln -s /var/media/mp3 ~/mp3</kbd> +</pre> +</td> +</tr> +</table> + +<p>The <var class="OPTION">-s</var> option tells <tt class="COMMAND">ln</tt> to make a +symbolic link. The next option is the target of the link, and the final option is what to +call the link. In this case, it will just make a file called <tt +class="FILENAME">mp3</tt> in your home directory that points to <tt +class="FILENAME">/var/media/mp3</tt>. You can call the link itself whatever you want by +just changing the last option.</p> + +<p>Making a hard link is just as simple. All you have to do is leave off the <var +class="OPTION">-s</var> option. Hard links may not normally refer to directories or span +file systems, however. To create a hard link <tt class="FILENAME">/usr/bin/email</tt> to +<tt class="FILENAME">/usr/bin/mutt</tt>, simply type the following:</p> + +<table border="0" bgcolor="#E0E0E0" width="100%"> +<tr> +<td> +<pre class="SCREEN"> +<samp class="PROMPT">#</samp> <kbd +class="USERINPUT">ln /usr/bin/mutt /usr/bin/email</kbd> +</pre> +</td> +</tr> +</table> +</div> + +<div class="NAVFOOTER"> +<hr align="LEFT" width="100%" /> +<table summary="Footer navigation table" width="100%" border="0" cellpadding="0" +cellspacing="0"> +<tr> +<td width="33%" align="left" valign="top"><a href="file-commands-deletion.html" +accesskey="P">Prev</a></td> +<td width="34%" align="center" valign="top"><a href="index.html" +accesskey="H">Home</a></td> +<td width="33%" align="right" valign="top"><a href="process-control.html" +accesskey="N">Next</a></td> +</tr> + +<tr> +<td width="33%" align="left" valign="top">Deletion: <tt class="COMMAND">rm</tt> and <tt +class="COMMAND">rmdir</tt></td> +<td width="34%" align="center" valign="top"><a href="file-commands.html" +accesskey="U">Up</a></td> +<td width="33%" align="right" valign="top">Process Control</td> +</tr> +</table> +</div> +</body> +</html> + |