Create Symbolic Link Ubuntu

Previously I get confused on how to create symbolic link for directory, I tried so many times, but it generate the wrong resul. I have directory : /usr/local/hive-0.11.0 , and I want to create symbolic link on /usr/local/hive, so whenever I open this folder : /usr/local/hive it will refer to  /usr/local/hive-0.11.0, and I also I can easily update the version of HIVE only by update the symlink,

First I tried this

$ ln -s /usr/local/hive-0.11.0 /usr/local/hive

however it give these following result  when i typed ls -l of /usr/local/hive

$ ls -l  /usr/local/hive
lrwxrwxrwx  1 root root         11 Nov 11 15:14 hive-0.11.0 -> hive-0.11.0

so I tried this

  • Go to /usr/local directory first

    $ cd /usr/local

  • Create hive folder inside /usr/local/

    $ mkdir hive

  • create symbolic link

    $ ln -s hive-0.11.0 hive

  • Result

    $ ls -l /usr/local
    lrwxrwxrwx 1 root root 11 Nov 11 15:14 hive -> hive-0.11.0
    drwxrwxrwx 10 tid tid 4096 Nov 11 15:07 hive-0.11.0

 

Advertisements

2 thoughts on “Create Symbolic Link Ubuntu

  1. Thanks , I have recently been searching for information about this topic for a while and yours
    is the greatest I have came upon so far.

    However, what concerning the conclusion? Are you positive in regards to the supply?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s