3 ms·
no tar?
by 2OEH8eoCRo0 2y ago
no tar?
- ochronus 2y agowell they never said _all_ the essential commands ;)
- teddyh 2y agoYou know, I used to extract and create tar files all the time, but have not done so in ages. I think it ended when software stopped being distributed as tar files. I mean, there are tar files, but you often don’t use that way to install them. For source code, you you use git clone or apt-get source. For already-compiled software, you use apt, snap, or some other package manager. General data files are usually made available as a .zip file.
- 2OEH8eoCRo0 2y agoMost of the upstream sources that I deal with come as tarballs. https://www.kernel.org/ https://www.kernel.org/
- greenbit 2y agoI sometimes use tar when I need to transfer a bunch of files using a USB stick. Most USB sticks I encounter are FAT (or rarely, NTFS) and the permissions get trashed if bare files are copied. Tar saves me from having to repair the perms on the other end. (Admittedly this isn't something you're going to need to do unless you find yourself working with air-gapped systems, but .. I do)
- BenjiWiebe 2y agoTar with -a (automatic) is awesome. tar -xaf foo.tar.gz Will auto-un-gzip based on the extension. Also works with compressing: tar -caf bar.tar.xz bar/
- ahartmetz 2y agoI just use tar xf file. The a option is probably only required when creating a tarball.
- Ringz 2y agoTar? I‘m so sorry! https://xkcd.com/1168 https://xkcd.com/1168
- 2OEH8eoCRo0 2y ago$ tar --help