Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|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

1 Answer 1

up vote 3 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.

share|improve this answer
    
Flawless .. thanks –  xain May 4 '10 at 11:44
    
Doesn't work for me on Fedora 19, Gnome 3.8.4, Nautilus 3.8.2. I tried the same file on .gnome and .gnome3. –  That Brazilian Guy Jan 7 at 14:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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