mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-30 22:57:59 +00:00
b088086b06
Now, it's all under the notebook umbrella. Seems to be appropriate as it is just my notes after all. I also updated some notes from there. I didn't keep track of what it is this time. Something about more learning notes extracted from my "Learning how to learn" course notes and then some. Lack of time and hurriness just makes it difficult to track but it should be under version control already.
1.4 KiB
1.4 KiB
Archive files
Archive files are good for saving some space and reducing the files needed for transfer. Nowadays, there are a lot of archive formats. Having worked with multiple of them, it can be confusing.
I'll just track them with this file.
Take note that not all files are stored with the file extension.
If it lacks the extension, inspect the file with the magic number.
You can do that with any file inspection tools like file.1
.
Format | File extension | Command to extract |
---|---|---|
Gunzip | .gz , .gzip |
tar -zxf $FILE , gunzip -c $FILE |
ZIP | .zip |
unzip $FILE |
Zstd | .zst |
tar --zstd xf $FILE |
xz | .xz |
tar --xz xf $FILE |
ISO | .iso |
There are also some libraries and applications for certain types of files.
- libarchive is a library that supports multiple archive formats
- GNU tar is the most popular utility for extracting archives