Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

tar

Tar produces different files each time

August 8, 2022 by Magenaut

I often have large directories that I want to transfer to a local computer from a server. Instead of using recursive scp or rsync on the directory itself, I’ll often tar and gzip it first and then transfer it.

Categories Q&A, Unix & Linux Tags files, hashsum, tar Leave a comment

What does the -f parameter do in the tar command

August 8, 2022 by Magenaut

When using tar I always include -f in the parameters but I have no idea why.

Categories Q&A, Unix & Linux Tags tar Leave a comment

Efficiently remove file(s) from large .tgz

August 8, 2022 by Magenaut

Assume i have an gzip compressed tar-ball compressedArchive.tgz (+100 files, totaling +5gb).

Categories Q&A, Unix & Linux Tags gzip, tar Leave a comment

How can I filter the contents of a tar file, producing another tar file in the pipe?

August 8, 2022 by Magenaut

Consider a single tar file from an external system which contains some directories with various attributes which I want to retain such as permissions, mtimes, etc. How can I easily take a subset of these files as a regular user (not root)?

Categories Q&A, Unix & Linux Tags pipe, tar Leave a comment

Compress a directory using tar/gz over SSH to local computer?

August 7, 2022 by Magenaut

I’d like to essentially tar/gz a directory on a remote machine and save the file to my local computer without having to connect back into my local machine from the remote one. Is there a way to do this over SSH? The tar file doesn’t need to be stored on the remote machine, only on the local machine. Is this possible?

Categories Q&A, Unix & Linux Tags bash, ssh, tar Leave a comment

How to download an archive and extract it without saving the archive to disk?

August 7, 2022 by Magenaut

I’d like to download, and extract an archive under a given directory. Here is how I’ve been doing it so far:

Categories Q&A, Unix & Linux Tags pipe, shell, tar, wget Leave a comment

Compress a folder with tar?

August 7, 2022 by Magenaut

I’m trying to compress a folder (/var/www/) to ~/www_backups/$time.tar where $time is the current date.

Categories Q&A, Unix & Linux Tags backup, linux, tar Leave a comment

How to XZ a directory with TAR using maximum compression?

August 7, 2022 by Magenaut

So I need to compress a directory with max compression.

Categories Q&A, Unix & Linux Tags compression, directory, tar Leave a comment

Does tar actually compress files, or just group them together?

August 7, 2022 by Magenaut

I usually assumed that tar was a compression utility, but I am unsure, does it actually compress files, or is it just like an ISO file, a file to hold files?

Categories Q&A, Unix & Linux Tags compression, tar Leave a comment

What are the differences between bsdtar and GNU tar?

August 7, 2022 by Magenaut

I’ve always used GNU tar. However, all GNU/Linux distributions that I’ve seen ship bsdtar in their repositories. I’ve even seen it installed by default in some, IIRC. I know for sure that Arch GNU/Linux requires it as a part of basedevel (maybe base, but I’m not sure), as I’ve seen it in PKGBUILDs.

Categories Q&A, Unix & Linux Tags bsd, gnu, tar Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress