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?
Ubuntu – How to create a soft or symbolic link
symbolic-link
Best Answer
See
man ln
.To create a symlink at
/usr/bin/bar
which references the original file/opt/foo
, use:You would need to apply the above command as root (i.e. with
sudo
).