1158
submitted 1 month ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 2 points 1 month ago* (last edited 1 month ago)

I almost never create a tarball, so I have to look up the syntax for that. Which is as simple as man tar. But as far as extracting it almost couldn't be easier, tar xf <tarball> and call it a day. Or if you want to list the contents without extracting, tar tf <tarball>. Unless you're using an ancient version of tar, it will detect and handle whatever compression format you're using without you having to remember if you need z or J or whatever.

[-] [email protected] 1 points 1 month ago* (last edited 1 month ago)

It can be easier if you're used to the dash before the arguments; it's optional but you can put them:

tar -cf   # Compress File
tar -xf   # Xtract File
this post was submitted on 07 May 2025
1158 points (96.8% liked)

Programmer Humor

24206 readers
354 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS