don't, don't, don't type your password on the command line like this. A better snippet would be:
mysqldump -u USER -p DATABASE > filename.sql
this way mysql will ask you for your password interactively. If you do what the original snippet says, your password will appear in plain text in your history file. If you provide it interactively it will never show up in a log.