- Joined
- Jul 13, 2015
- Messages
- 1,119
- Reaction score
- 119
- Points
- 4,235
- Age
- 24
So I need to submit assignments to the University marking system in a .tar archive with NO subfolders.
So files should be in the root. Problem is, when using MacOS using the terminal with the commands:
tar -cvf archive.tar *
or
tar -zcvf archive.tar folder
The archive is created with a subfolder (the archive name) thus when you unpack it the contents are placed inside a folder called archive.
When using this on most Linux distros:
tar -cvz file names -f archive.tar
I get the result I want, no subfolder files, using it on my Mac it just gives garbage in the terminal and corrupts the files
Any help will be appreciated, currently coding on my Mac and need to have a VM just to zip up the files.
So files should be in the root. Problem is, when using MacOS using the terminal with the commands:
tar -cvf archive.tar *
or
tar -zcvf archive.tar folder
The archive is created with a subfolder (the archive name) thus when you unpack it the contents are placed inside a folder called archive.
When using this on most Linux distros:
tar -cvz file names -f archive.tar
I get the result I want, no subfolder files, using it on my Mac it just gives garbage in the terminal and corrupts the files
Any help will be appreciated, currently coding on my Mac and need to have a VM just to zip up the files.