I am trying to extract a tarball. I created this tarball on MacOS and then copied it over to a remote server, where I tried to extract the files. When I try to extract the files, it works but it also includes a bunch of octet stream files. The octet stream files have the same name as each of the folders and files extracted from the tar.
To create the tar file, I did:
tar -cz --no-xattrs --exclude="*DS_Store" -f archive.tar.gz directory
Then I used scp to copy the tar file to my server:
scp -P port archive.tar.gz user@hostname:path/to/destination
Then, I extracted the tar files on the server like this:
tar -xzf archive.tar.gz
This results in the expected files being extracted, but with every file also having an octet stream file with the name:
._{name of file}.
I'm not sure if this is supposed to happen or if I am doing something wrong.
I don't know what these octet stream files are or what to do with them. I don't want them cluttering up my remote server. For context, the remote server hosts files for a website I am running and the specific tarball I copied over contained the files for a MediaWiki instance I am trying to update. I am concerned that these files might interfere with the functioning of my website, especially if I continue the update process. How do I get rid of these files? How do I create/extract the tarball so that they don't show up in the first place?