If you enable autosave in MATLAB in a UNIX environment, the tilde character appears after the M extension in the file name. To manage your autosave settings, select File > Preferences > Editor/Debugger > Autosave. You can also turn off autosave from this menu.