ibm-information-center/dist/eclipse/plugins/i5OS.ic.ifs_5.4.0.1/rzaaxsymlnk.htm

76 lines
5.0 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Symbolic link" />
<meta name="abstract" content="A symbolic link, which is also called a soft link, is a path name contained in a file." />
<meta name="description" content="A symbolic link, which is also called a soft link, is a path name contained in a file." />
<meta name="DC.subject" content="link, symbolic, symbolic link, what is it?, symbolic link, example of using, example, using symbolic link" />
<meta name="keywords" content="link, symbolic, symbolic link, what is it?, symbolic link, example of using, example, using symbolic link" />
<meta name="DC.Relation" scheme="URI" content="rzaaxlinkifs.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaaxsymlnk" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Symbolic link</title>
</head>
<body id="rzaaxsymlnk"><a name="rzaaxsymlnk"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Symbolic link</h1>
<div><p>A <dfn class="term">symbolic link</dfn>,
which is also called a soft link, is a path name contained in a file. </p>
<p>When the system encounters a symbolic link, it follows the path name provided
by the symbolic link and then continues on any remaining path that follows
the symbolic link. If the path name begins with a /, the system returns to
the / (<span class="q">"root"</span>) directory and begins following the path from that point.
If the path name does not begin with a /, the system returns to the immediately
preceding directory and follows the path name in the symbolic link beginning
at that directory.</p>
<p>Consider the following example of how a symbolic link might be used:</p>
<div class="fignone"><span class="figcap">Figure 1. An example of using a symbolic link</span><br /><img src="rv3n068.gif" alt="An example of using a symbolic link" /><br /></div>
<p>You select a menu option to show the status of customer accounts. The program
displaying the menu uses the following path name: </p>
<pre> /Customer/Status/Summary</pre>
<p>The system follows the <em>Customer</em> link, which leads to a directory <span>1</span>,
and then follows the <em>Status</em> link. The <em>Status</em> link is a symbolic
link, which contains a path name <span>2</span>. Because the path name begins
with a /, the system returns to the / (<span class="q">"root"</span>) directory and follows
the links <em>Records</em> and <em>Accounts</em> in sequence. This path leads
to another directory <span>3</span>. Now the system completes the path in the
path name provided by the program. It follows the <em>Summary</em> link, which
leads to a file <span>4</span> containing the data you will need.</p>
<p>Unlike a hard link, a symbolic link is an object (of object type *SYMLNK);
it can exist without pointing to an object that exists. You can use a symbolic
link, for example, to provide a path to a file that will be added or replaced
later.</p>
<p>Also unlike a hard link, a symbolic link can cross file systems. For example,
if you are working in one file system, you can use a symbolic link to access
a file in another file system. Although the QSYS.LIB, independent ASP QSYS.LIB,
and QDLS file systems do not support creating and storing symbolic links,
you can create a symbolic link in the "root" (/) or QOpenSys file system that
allows you to: </p>
<ul><li>Access a database file member in the QSYS.LIB or independent ASP QSYS.LIB
file systems.</li>
<li>Access a document in the QDLS file system.</li>
</ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaaxlinkifs.htm" title="A link is a named connection between a directory and an object. A user or a program can tell the server where to find an object by specifying the name of a link to the object. A link can be used as a path name or as part of a path name.">Link</a></div>
</div>
</div>
</body>
</html>