tar is used to create a Tape ARchive. The resulting file is known as a tarball. It's pretty much the same concept as a ZIP file, if you know what they are, but without the compression. To get the files out of a tarball, you can use the following commands:tar xvf something.tarIf the tarball has also been gzipped (compressed), you can use the following command: tar xvfz something.tar.gzIf you only want certain directories from the tarball, do this: tar xvzf something.tar.gz */dir.you.want/*If you have a .tar.bz2 file, then you need bzip2 installed (/usr/ports/archivers/bzip2), and you issue this command: |
tar |
To tar up *.db in the current directory into a tarball called blah.tar.gz, issue this command:The z option compresses.tar cfz blah.tar.gz *.db |
listing the contents |
To see a list of the files within a tarball, issue the following command:The -t provides a list. the -z indicates that the tarball is compressed. The -f identifies the tarball.tar -tzf blah.tar.gz Here's an example: # tar -tzf makeworld.991126.tgz etc/ etc/protocols etc/aliases etc/services etc/hosts |
Wednesday, December 28, 2011
Extract tar.gz File
Swipe JS a very useful tool for native-like swiping
Swipe JS brings content sliding to the mobile web to preserve space and allow for new types of interaction. Many mobile web sliders currently exist but few embody all the rules a slider like this should follow.
1:1 touch movement
1:1 movement, as described above, is about tracking the position of the touch and moving the content exactly how the touch interacts. This interaction is very common in native apps.
Resistant bounds
When Swipe is at the left-most position, sliding any more left will increase the resistance to slide, making it obvious that you have reached the end. This detection/resistance occurs at both left and right bounds.
Rotation/resize adjustment
When a user rotates their device (in turn resizing the browser window), the slider resets to make sure the sliding elements are the right size. This is only necessary for sliders without declared widths.
Variable width containers
Swipe allows you to set a width to the container, which designates the width of each slide element. This is important if you do not want a full width slider (the default).
Scroll prevention
Scroll prevention is one of the most overlooked pieces of mobile sliders. Swipe detects if you’re trying to scroll down the page or slide content left to right.
Library agnostic
Swipe doesn’t rely on any library. Trust me this is a good thing. All you have to do is pass in the container element, set some parameters, and BOOM goes the dynamite– you're all set. You may choose to pass the element to Swipe with a library, but it’s not necessary.