Where does the rename
command come from?
user@host> dpkg -S /usr/bin/rename
dpkg-query: no path found matching pattern /usr/bin/rename
Where does the rename
command come from?
user@host> dpkg -S /usr/bin/rename
dpkg-query: no path found matching pattern /usr/bin/rename
Surprisingly, it comes from the
rename
package.You will probably find that it's a symbolic link that is managed by the
update-alternatives
mechanism:You can see the optional implementations using
and can choose between implementations using
FWIW
file-rename
is provided by therename
package, whereas the originalprename
is provided byperl
itself. Fromapt-cache show rename
:As if this was not already confusing enough, you may also come across yet another
rename
from theutil-linux
package - see What's with all the renames?If we're talking about
/usr/bin/rename
, which is a pretty nifty perl script, thenrename
command belongs to its own separate package.In case of Korn shell and its derivatives,
rename
is a shell built-in command.