Note: Tar isn't a data compressor utility. Tar is generally used to recursively add folder data to a single file. Because back then (and still) gzip, bzip, bzip2 didn't and still doesn't support folder compression which is little more tricky as it requires to handle each folder content separately and a folder can have thousands of folders and in that thousands of folders one or more of them can have thousands of more other folder which makes data compression a lot more different that just a single file compression. Tar was created to address and fix this issue in mind where portability is the choice, and this don't require to individually compresses each files. BSD and Linux uses tar for various reasons, especially package archive. Another note, no need to specify "x" param in tat argument as tar can individually identify compression algorithm through checking header, so tar xf [my_file] is pretty handy! :-) Great video, many new folks, especially for UNIX beginners, this will surely gonna help a lot!
This was helpful as I was unclear on what 'tar' actually was for and why 'tar' and 'gz' were used together. Coming from Windows, of course, I was only familiar with "zip". I moved to Linux about six months ago, and I'm looking at FreeBSD, mainly out of curiosity. Also, subscribed.
Nice to see xv still in use. It's worth noting the options for verbose and list contents on these. It is possible to have archives that when decompressed empty dump all the files into the current directory which may not be what you want.
Actually I picked a filthy habit up when I was an OS/2 user - the use of RAR. In a weak moment when using PCmanFM or Dolphin, I use the default tar.gz.
I would not know zoo if it was not for the VAX and MVS. Much like zip. The VAX had funny file types unknown to the UNIX world. zoo is available for FreeBSD as well.
You can use tar+xz, it's pretty much equivalent, except it may be better for preserving unix specific attributes (and extended attributes too I think). Both xz and 7z use LZMA2 compression and 7z, by default, compress all files together like tar.
TH-cam seems to have eaten my last attempt, so I shall repeat: FreeBSD uses bsdtar, which is a general-purpose archiving tool using libarchive. You don't need a third-party zip tool, nor do you need to hold its hand about which compressor to use because it can auto-detect both from files and from the filenames you try to use: $ tar caf foo.zip foo && file foo.zip foo.zip: Zip archive data, at least v2.0 to extract, compression method=deflate $ tar caf foo.7z foo && file foo.7z foo.7z: 7-zip archive data, version 0.3 $ tar caf foo.tar.xz && file foo.tar.xz foo.tar.xz: XZ compressed data, checksum CRC64 It'll make ISO images, it'll uu encode files, and you don't need to know any obscure flags to do it because it'll auto-detect creation from the filename with the 'a' flag and from a file you're extracting without any flag - 'tar xf foo.tar.xz.uu' works just the same as 'tar xf foo.zip'.
@@RoboNuggie simple and elegant. When i was little boy, i played on amiga a500... heard about new amiga os, but i never really digged in this topic except old .mod and music trackers.
Note: Tar isn't a data compressor utility. Tar is generally used to recursively add folder data to a single file. Because back then (and still) gzip, bzip, bzip2 didn't and still doesn't support folder compression which is little more tricky as it requires to handle each folder content separately and a folder can have thousands of folders and in that thousands of folders one or more of them can have thousands of more other folder which makes data compression a lot more different that just a single file compression. Tar was created to address and fix this issue in mind where portability is the choice, and this don't require to individually compresses each files. BSD and Linux uses tar for various reasons, especially package archive.
Another note, no need to specify "x" param in tat argument as tar can individually identify compression algorithm through checking header, so tar xf [my_file] is pretty handy! :-)
Great video, many new folks, especially for UNIX beginners, this will surely gonna help a lot!
Ah, thank you Mysternya, I am always open to learn new things....even when I thought I knew it :-)
Much appreciated, and thank you!
This was helpful as I was unclear on what 'tar' actually was for and why 'tar' and 'gz' were used together. Coming from Windows, of course, I was only familiar with "zip". I moved to Linux about six months ago, and I'm looking at FreeBSD, mainly out of curiosity. Also, subscribed.
Thank you!
Nice to see xv still in use. It's worth noting the options for verbose and list contents on these. It is possible to have archives that when decompressed empty dump all the files into the current directory which may not be what you want.
👍
:-)
Actually I picked a filthy habit up when I was an OS/2 user - the use of RAR. In a weak moment when using PCmanFM or Dolphin, I use the default tar.gz.
Nice video! May I know what window manager you're using for freeBSD? Thanks!
Sorry for the late reply, the WIndow Manager is Motif Window Manager, which is the base for CDE etc....
I would not know zoo if it was not for the VAX and MVS. Much like zip. The VAX had funny file types unknown to the UNIX world. zoo is available for FreeBSD as well.
I didn't know that, that's pretty cool, thank you!
I used to use tar but now mainly use 7z:
7z a archive.7z file1 fil2 ...
7z x archive.7z
Nice!
You can use tar+xz, it's pretty much equivalent, except it may be better for preserving unix specific attributes (and extended attributes too I think). Both xz and 7z use LZMA2 compression and 7z, by default, compress all files together like tar.
Thanks for the video !
Cheers Jeff, thanks for being here..... much appreciated!
TH-cam seems to have eaten my last attempt, so I shall repeat: FreeBSD uses bsdtar, which is a general-purpose archiving tool using libarchive. You don't need a third-party zip tool, nor do you need to hold its hand about which compressor to use because it can auto-detect both from files and from the filenames you try to use:
$ tar caf foo.zip foo && file foo.zip
foo.zip: Zip archive data, at least v2.0 to extract, compression method=deflate
$ tar caf foo.7z foo && file foo.7z
foo.7z: 7-zip archive data, version 0.3
$ tar caf foo.tar.xz && file foo.tar.xz
foo.tar.xz: XZ compressed data, checksum CRC64
It'll make ISO images, it'll uu encode files, and you don't need to know any obscure flags to do it because it'll auto-detect creation from the filename with the 'a' flag and from a file you're extracting without any flag - 'tar xf foo.tar.xz.uu' works just the same as 'tar xf foo.zip'.
That red KDE colors are pretty. Its a theme or your custom?
I customised it using Amiga OS4 icons and terminal colouring, with colours that matched FreeBSD.... I think it works quite well...
@@RoboNuggie simple and elegant. When i was little boy, i played on amiga a500... heard about new amiga os, but i never really digged in this topic except old .mod and music trackers.
thanks for the video. What WM/DE is this?
The first one is the Motif Window Manager, mwm. The second is the KDE desktop environment.
@@_ClericalError_ thanks!
@@_ClericalError_ thanks
Tar then zip 😁 then GZ
I do zip, it's more portable.