up vote 4 down vote favorite
1
share [g+] share [fb]

Is there an extension or script to calculate a file's md5 hash using the right click of the mouse in Ubuntu ?

link|improve this question

@xain: do you mean you want a new entry on the context menu (right click menu) to calculate the hash, or do you want the calculation to run automatically when a file is right clicked? can we presume you're in Nautilus (Ubuntu's default Gnome file manager)? – quack quixote May 4 '10 at 2:49
feedback

1 Answer

up vote 4 down vote accepted

Here's a simple Nautilus script:

#/bin/sh

IFS='
'
for i in ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}; do
  md5sum "$i"
done | zenity --text-info --title="md5sums" --width=800 --height=40

Save it in $HOME/.gnome2/nautilus-scripts/ (create that directory if it doesn't exist) and make in executable. If you right click on a file you should find it in the "Scripts" submenu.

link|improve this answer
Flawless .. thanks – xain May 4 '10 at 11:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.