Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
sebastiancarlos ( sebastiancarlos@lemmy.sdf.org )  to Linux@lemmy.mlEnglish · 3 years ago

How to write a 'tar' command

lemmy.sdf.org

message-square
107
link
fedilink
547

How to write a 'tar' command

lemmy.sdf.org

sebastiancarlos ( sebastiancarlos@lemmy.sdf.org )  to Linux@lemmy.mlEnglish · 3 years ago
message-square
107
link
fedilink
  • Programmer Belch ( programmer_belch@lemmy.dbzer0.com ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    Does something similar happen using xz?

    • Programmer Belch ( programmer_belch@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      I’ve searched for it and xz also doesn’t use multithreading by default, you can change the program tar uses to compress by passing the -I option. For xz using all possible CPU threads:

      tar -cv -I 'xz -6 -T0' -f archive.tar.xz [list of directories]

      The number indicates the compression ratio, the higher the number, the more compressed the archive will be but it will cost more in terms of memory and processing time

      • TheSaneWriter ( TheSaneWriter@lemmy.thesanewriter.com ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        Thanks for answering your own question, this is useful information.

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 102 users / day
  • 1.3K users / week
  • 2.52K users / month
  • 6.29K users / 6 months
  • 1.31K local subscribers
  • 68.1K subscribers
  • 8.11K Posts
  • 109K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • nooter692 ( nooter692@lemmy.ml ) 
  • MarcellusDrum ( MarcellusDrum@lemmy.ml ) 
  • Arthur Besse ( cypherpunks@lemmy.ml ) 
  • Cyclohexane ( cyclohexane@lemmy.ml ) 
  • d3Xt3r ( d3Xt3r@lemmy.nz ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code