What's new
Carbonite

South Africa's Top Online Tech Classifieds!
Register a free account today to become a member! (No Under 18's)
Home of C.U.D.

Probably just a newb, but I cannot seem to tar files

Giovanni

👌
VIP Supporter
Rating - 100%
98   0   0
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. :sick:
 
Are you "inside" the folder when running "tar -zcvf archive.tar *"?
 
Failing that can always try using StuffitExpander and just create it in the GUI?
 
Are you "inside" the folder when running "tar -zcvf archive.tar *"?

Yes. Will try StuffitExpander, have tried Gui TAR in the past and it did the same.
 
Lol, I remember the days of running VMs just because your stupid lecturer preferred a certain stack, or something had a weird kink to it because of the OS, etc. Those that can't do, teach. Just VM and do everything from there :p
 
Lol, I remember the days of running VMs just because your stupid lecturer preferred a certain stack, or something had a weird kink to it because of the OS, etc. Those that can't do, teach. Just VM and do everything from there :p

It feels so stupid to be using a VM that is in essence the same bash shell
 

Users who are viewing this thread

Latest posts

Back
Top Bottom