I had a folder of useless C programs for a project. When I was compressing it using tar, I kept using
tar -cvf c-project
and then realized I'm setting the flag for the file name and I'm giving none.
So I tried remove the flag
f and set the command to
tar -cv c-project assuming, the name of the tar file would become
However, this is what happened.
This behavior doesn't appear when gzip is used. That is the additonal
z flag is added.
Any idea why this is happening? The contents seem to be the content of the C files. However, why are they "scrambled"?