r/programming • • Mar 15 '13

Programming cheat sheets (quick reference)

http://overapi.com/
1.6k Upvotes

97 comments sorted by

View all comments

2

u/AdvicePerson Mar 16 '13

No ksh?!

0

u/sethraine Mar 16 '13

No DCL either!

0

u/[deleted] Mar 16 '13

[deleted]

3

u/benthor Mar 16 '13 edited Mar 17 '13

I never understood that comic. It's easy, from the top of my head:

  • x - "exctract"

  • c - "compact"

  • v - "verbose"

  • z - "gzip"

  • j - "bzip2"

  • a - "automatic (un)zip"

  • f - "work on file argument"

tar xvaf archive.tar.bz2 ("extract this file in verbose mode, autodetect compression method')

tar cvjf archive.tar.bz2 directory1/ directory2 ("bzip2 compress and create an archive in verbose mode of the following files/directories")

What's so hard about that?

2

u/lasermancer Mar 16 '13
EXAMPLES
     Create archive.tar from files foo and bar.
           tar -cf archive.tar foo bar
     List all files in archive.tar verbosely.
           tar -tvf archive.tar
     Extract all files from archive.tar.
           tar -xf archive.tar

Straight from the man page.

1

u/sethraine Mar 16 '13

lol... I dunno, I usually only use tar -xvf