Typical command would be :

(0 is MD5)

hashcat -a 0 -m 0 file.hash /usr/share/wordlists/xxx.txt —username (—username if hash file contains stuff like robert:pass)