At the end of a makefile I saw
rm -f *~ *.class
I understand the
*.class, but what's
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
It's basically removing backup files.
*~ means all files ending in
Many Unix/Linux systems programs create backup files that end in
For example, the
nano editors automatically save a backup copy of each file you edit. When it saves a file, the old version gets saved using the file name with a tilde (
~) added to the end.
Vim will do the same if you put
:set backup in your
*~ on Unix/Linux is like
*.bak on Windows.