In a linux command line, you zip a file by:
zip -mqj archive.zip file.txt
Now, I need to store 'file.txt' as 'file2.txt' in 'archive.zip', without renaming the file before zipping. When unzipped, the file should be called 'file2.txt'.
How can I store the file with a different name?
Read through the MAN page and didn't find an answer.
Best Answer
Does creating a hard link to file.txt count?
ln file.txt file2.txt
Create file2.txt which points to the exact same inode as file.txt, without actually doubling the space