pwhich

File::Which is a portable implementation (in Perl) of 'which',

Install

All systems
curl cmd.cat/pwhich.sh
CentOS
yum install perl-File-Which
Fedora
dnf install perl-File-Which

perl-File-Which

File::Which is a portable implementation (in Perl) of 'which',

and can be used to get the absolute filename of an executable program installed somewhere in your PATH, or just check for its existence.