{"pageProps":{"metadata":{"date":"\"2021-06-18 18:50:14 +08:00\"","date_modified":"\"2021-07-20 23:28:42 +08:00\"","language":"en","source":""},"title":"Archive files","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Archive files are good for saving some space and reducing the files needed for transfer.\nNowadays, there are a lot of archive formats.\nHaving worked with multiple of them, it can be confusing.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"I'll just track them with this file.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Take note that not all files are stored with the file extension.\nIf it lacks the extension, inspect the file with the magic number.\nYou can do that with any file inspection tools like "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"file.1"}]},{"type":"text","value":".\n"}]},{"type":"element","tagName":"table","properties":{},"children":[{"type":"element","tagName":"thead","properties":{},"children":[{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Format"}]},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"File extension"}]},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Command to extract"}]}]}]},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Gunzip"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":".gz"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":".gzip"}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"tar -zxf $FILE"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"gunzip -c $FILE"}]}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"ZIP"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":".zip"}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"unzip $FILE"}]}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Zstd"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":".zst"}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"tar --zstd xf $FILE"}]}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"xz"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":".xz"}]}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"tar --xz xf $FILE"}]}]}]},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"ISO"}]},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":".iso"}]}]},{"type":"element","tagName":"td","properties":{},"children":[]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"There are also some libraries and applications for certain types of files.\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://www.libarchive.org/"},"children":[{"type":"text","value":"libarchive"}]},{"type":"text","value":" is a library that supports "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/libarchive/libarchive/wiki/LibarchiveFormats"},"children":[{"type":"text","value":"multiple archive formats"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"http://www.gnu.org/software/tar/"},"children":[{"type":"text","value":"GNU tar"}]},{"type":"text","value":" is the most popular utility for extracting archives\n"}]}]}]}]},"backlinks":[]},"__N_SSG":true}