Actions

Difference between revisions of "Lab05"

From ACL@NCU

Line 6: Line 6:
</pre>
</pre>


#:For example, typing the following command in your home directory (~):
#: For example, typing the following command in your home directory (~):
<pre>
<pre>
ln -s /media/DATA2/guests/public/Lab05 fmric
ln -s /media/DATA2/guests/public/Lab05 fmric
</pre>
</pre>


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


you will be in "~/fmric", where all the contents of /media/DATA2/guests/public/Lab05 can be accessed.  
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.
## Deleting the symbolic link won't remove the contents of its destination.

Revision as of 16:34, 18 November 2014

Linux Knowledge

  1. create symbolic link to a path
ln -s <destination> <symbolic link>
  1. For example, typing the following command in your home directory (~):
ln -s /media/DATA2/guests/public/Lab05 fmric
  1. 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.

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