I am working on a small application based on ffmpeg and I read a tutorial made for ubuntu where they advise using the hash command on releasing the executable.
I am interested in this command, have you ever used it? For what?
When I run it in my source folder, I get this (after compilation)
$ hash hits command 1 /usr/bin/strip 1 /usr/local/bin/ffmpeg 1 /usr/bin/svn 4 /usr/local/bin/brew 2 /usr/bin/git 1 /bin/rm 1 /bin/cat 1 /usr/bin/ld 1 /bin/sh 4 /usr/bin/man 5 /usr/bin/make 4 /usr/bin/otool 15 /bin/ls 6 /usr/bin/open 2 /usr/bin/clear
Looks like a summary of my bash_history ...
When I run it in an executable file, I do not have many lines, and nothing changes in this application?
$ md5 ffserver MD5 (ffserver) = 2beac612e5efd6ee4a827ae0893ee338 $ hash ffserver $ md5 ffserver MD5 (ffserver) = 2beac612e5efd6ee4a827ae0893ee338
When I search for a person, he simply says that it is a built-in function. Really helpful :)
It works (even if it exists) on Linux and MacOSX .
Thank you for your help, I probably will find out something today :)
source share