Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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 '14 at 14:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .