Shell script example What are all the commands in bin? $ for f in /bin/*; do whatis `basename $f`; done | head arch (1) - print machine architecture ash (1) - a shell ash [bsh] (1) - a shell ash.static: nothing appropriate aumix-minimal: nothing appropriate awk: nothing appropriate basename (1) - strip directory and suffix from filenames basename [File::Basename] (3) - extract just the filename from a path bash (1) - GNU Bourne-Again SHell bash [builtins2] (1) - bash built-in commands, see bash(1)