Actions

Difference between revisions of "Lab05"

From ACL@NCU

(Created page with "=Linux Knowledge= #create symbolic link to a path <pre> ln -s <destination> <symbolic link> </pre> For example, typing the following command in your home directory (~): <pre...")
 
Line 1: Line 1:
=Linux Knowledge=
=Linux Knowledge=


#create symbolic link to a path
*create symbolic link to a path
<pre>
<pre>
ln -s <destination> <symbolic link>
ln -s <destination> <symbolic link>
Line 11: Line 11:
</pre>
</pre>


Create a symbolic link "fmric" pointing to "/media/DATA2/guests/public/Lab05" (assuming it exists).
Create a symbolic link "fmric" pointing to "/media/DATA2/guests/public/Lab05" (assuming it exists). Thus, under your home directory, type:
<pre>
cd fmric
</pre>
 
you will be in "~/fmric", where all the contents of /media/DATA2/guests/public/Lab05 can be accessed.
**Deleting the symbolic link won't remove the contents of its destination.

Revision as of 16:31, 18 November 2014

Linux Knowledge

  • create symbolic link to a path
ln -s <destination> <symbolic link>

For example, typing the following command in your home directory (~):

ln -s /media/DATA2/guests/public/Lab05 fmric

Create a symbolic link "fmric" pointing to "/media/DATA2/guests/public/Lab05" (assuming it exists). Thus, under your home directory, type:

cd fmric

you will be in "~/fmric", where all the contents of /media/DATA2/guests/public/Lab05 can be accessed.

    • Deleting the symbolic link won't remove the contents of its destination.