Skip to content

Comment on Show HN: Extract it – Because nobody can remember tar commands

Comments

I have good memory but I always try to convert information into mental cards so I can draw associations, that is how I have learned all commands you can imagine. I deactivated the system file manager of my operation system long time ago because I got used to the terminal, and that is how I do everything in my personal computer.

For extraction of archives I am able to remember the commands like this. For files with "tar" extension I use "tar xf" (where "x" means eXtract and "f" file, I think so). Now, if the extension is "tar.bz2" add a "j", and "z" for "tar.gz". For "zip" files use "unzip" and start adding a prefix like "b" or "g" for "bz2" and "gz" files respectively:

  file.tar     -> tar xf
  file.tar.gz  -> tar xfz
  file.tar.bz2 -> tar xfj
  file.zip     ->  unzip
  file.bz2     -> bunzip2
  file.gz      -> gunzip
https://github.com/xvoland/Extract
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.