Forum Topic

Viewing a single forum discussion topic.

Back to Programming Errors And Help

How to create a soft or symbolic link in Ubuntu?

Post a reply
1972 views
DeepikaPatil
DeepikaPatil

I am installing p4v in /opt, but /usr/bin is on my path. Is it possible to create a soft or symbolic link for p4v from /opt to /usr/bin, so I can just type "p4v" since /usr/bin is in my path?

mayureshpandit282
mayureshpandit282

See man ln.

To create a symlink at /usr/bin/bar which references the original file /opt/foo, use:

ln -s /opt/foo /usr/bin/bar

You would need to apply the above command as root (i.e. with sudo).

DeepikaPatil
DeepikaPatil

Thank you for help it works for me

1-3 of 3

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.