Linux – How to symlink binaries under /usr/local/util to the default searchable /bin

bashlinux

There are multiple binaries under /usr/local/util so I don't want to do it by running ln -s /bin/util_i /usr/local/util/util_i multiple times.

Anyway,what I want to achieve is that I don't need to type /usr/local/util/ to run binaries under it.

Best Answer

Don't copy into /bin if you can help it.

cp -sn /usr/local/util/* /usr/local/bin

But what you should be doing is adding /usr/local/util to $PATH.