This blog moved to medium->https://medium.com/@cocoamaemae

Wednesday, May 18, 2016

How to create or remove symbolic link

What's symbolic link?
Symbolic link is a special kind of link that points to another file.
After created, a link target file is replaced as source file.

How to create symbolic link
ln -s <source file name> <link target file name>

e.g.
$ ln -s /usr/local/bin/ruby /usr/bin/ruby

$ ls -alt /usr/bin/ruby
/usr/bin/ruby -> /usr/local/bin/ruby

How to remove symbolic link

use unlink or rm

e.g.
unlink /usr/bin/ruby
rm /usr/bin/ruby

No comments:

Post a Comment

Front End Development Tools

TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...