From 5a12e7c134274dba706667107d10d231517d3e05 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Wed, 26 Aug 2009 10:00:38 -0500 Subject: Slackware 13.0 Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P. --- slackbook/html/file-commands-link.html | 105 +++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 slackbook/html/file-commands-link.html (limited to 'slackbook/html/file-commands-link.html') diff --git a/slackbook/html/file-commands-link.html b/slackbook/html/file-commands-link.html new file mode 100644 index 000000000..8a3784fa7 --- /dev/null +++ b/slackbook/html/file-commands-link.html @@ -0,0 +1,105 @@ + + + + +Aliasing files with ln + + + + + + + + + + + +
+

10.7 Aliasing +files with ln

+ +

ln(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 Section 9.3. If you +wanted to make a symbolic link to the directory /var/media/mp3 +and place the link in your home directory, you would do this:

+ + + + + +
+
+% ln -s /var/media/mp3 ~/mp3
+
+
+ +

The -s option tells ln 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 mp3 in your home directory that points to /var/media/mp3. You can call the link itself whatever you want by +just changing the last option.

+ +

Making a hard link is just as simple. All you have to do is leave off the -s option. Hard links may not normally refer to directories or span +file systems, however. To create a hard link /usr/bin/email to +/usr/bin/mutt, simply type the following:

+ + + + + +
+
+# ln /usr/bin/mutt /usr/bin/email
+
+
+
+ + + + + -- cgit v1.2.3