Alfred’s Computing Weblog

Alfred Java-cored Computing Weblog

Posts Tagged ‘softlink

Linux | SoftLink

leave a comment »

Softlink, aka Symbolic link, is a reference to another path / file. its like a pointer in common programming.

Create softlink
Format: ln –s {target} {link_name}
Eg:
$> cd /
$> mkdir -p tmp/test/aa/bb/
$> ln -s tmp/test/aa/bb/ tmp/link
$> ls -l tmp/
.. lrwxrwxrwx 1 root root 15 Feb 6 11:26 link -> tmp/test/aa/bb/

1. Go to root path
2. create folder with subfolders
3. make softlink (/tmp/link) to /tmp/test/aa/bb/

Remove softlink
Format: rm {link_name}
eg: $> rm /tmp/link

Reminder: do not include the slash after the softlink

Written by Alfred

February 6, 2009 at 12:38

Posted in linux

Tagged with ,