There is not an "Ask to Save" dialog when closing Blender on Linux. This needs implemented. It's already available on Windows as a User Preferences option, and it's there on OS X.
No option available for asking to save.
Ask To Save works, except when quitting Blender from the File menu, at which point it instantly quits with no prompt.