My initial thought was to search your
PATH, but if you know what you want
which is certainly the tool you should use as suggested below. I also thought at first you wished to trigger the the
bash readline support for history,
ctrl-r. If that's the case (probably not), then you may also wish to directly peek at
$HOME/.bash_history.
For a more portable approach, to the solution to the first problem, it's also rather trivial to break PATH into a list of directories, then to use find to facilitate the listing of their contents in terms of their full path location:
for d in $(echo $PATH | tr ':' '\n'); do find $d -type f; done
Or as sent via an ssh command,
ssh you.remote.host "for d in \$(echo \$PATH | tr ':' '\n'); do find \
+$d -type f; done"
find is also pretty darn flexible, and if you do not wish to use it then there are other utilities you may use to list the contents of each directory in
PATH like
ls.