You’d think I’d just learn how to use this, but I suppose I use it so infrequently that I just can’t remember it. So here are my quick “go-to” tar references.
tar -xzvf filename.tar.gz
z:- parse through gzip
v:- verbose (show files)
f:- file archive
tar -cf archive.tar file1 file2 dir1
tar -czf archive.tar.gz file1 file2 dir1
notes to above:
you don’t HAVE to run the archive through gzip, although there’s no real reason not to. If you chose just to archive without compression, it merely means your file will be larger. This may or may not be a big deal
you [b]must[/b] specify a file archive (-f option), not specifying a file is an unrecoverable error and tar will exit
recursion is on by default, so if a directory name is specified, recursion will occur. To override that option specify (–no-recursion). Alternatively, if recursion is turned off within the environment it can be re-instated by stating (–recurse).
show me the contents
What if you just want to look at what’s in the archive?
Do a test (-t / –list) run.
tar -tvf archive.tar
This will output (list) the files to stdout without extracting the contents. Useful to see what’s in the archive.
Other useful options:
Here are just a few other useful options and command line usage options to tar that I find useful.
C:- Change to directory and extract at that location
–strip-components=1 :- use this if you need to remove the baseline directory from the archive
I’m not really into art, but I find this piece amazing. Mesmerising.
I don’t even know when I first saw this piece, but when I did it blew me away. It is an amazing story told in just 3 images.
I was walking the streets of my local area a few days ago and came across an interesting house. Garden ornaments upside down, numerous pieces of dowel in trees, a tripod of sticks with a rock hanging at the end of a cord, and more. As I walked past I noticed an old gentleman in the garage working. I couldn’t help myself, I approached and began talking to him and about his house and what I had seen in his yard.
Mid sentence I looked around the garage and I saw a reproduction of this painting on the wall.
It is the only painting ever that I explicitly went to the National Art Gallery of NSW to see when it was on tour in Sydney many years ago. Beautiful. Powerful.
I’m reminded of it again tonight as I listen to Apple Music and Dire Straits’ Telegraph Road comes on. Immediately this image comes flooding into my head.
It doesn’t matter which enters my mind first, Telegraph Road and The Pioneer. I am automagically reminded of the other. The stories they share are in very similar styles.
We have spent the last hour, probably longer, doing these three puzzles. Putting them together has been simple (I’ve been doing it for them).
However, the problem has been finding the pieces scattered between play locations, boxes, under beds, behind lounges etc.
How crazy is it that in exactly three puzzles there are exactly one piece missing from each?
Or is it by design? Did someone purposefully hide those single pieces?
I could be easily convinced to believe in conspiracy theories, however on this occasion, I would just say that they’re lost.
I know I have. I was aware of some of these, I thought I was aware of most types available in Thailand after having spent a lot of time there. But after reading this, how could anyone know the ins and outs of all these?
taxi’s are yellow with either black (cars), green (tub tub) or red (inter-province) writing
rentals are green with white text
private cars are white with black text
private vans are white with blue text
private pick-ups are white with green text
private motorised tuk-tuks are white with red text
special trade plates are red with black text
hired buses and trucks are yellow with black text
private buses and trucks are white with black text
This is apparently a common problem for the Sony Bravia’s and JPEG support isn’t the best. A little research has found a few pages referencing the spec DCF2.0/EXIF2.1, but what does that really mean?
Apparently it’s a limitation when using JPEGs of a high quality with Chroma Subsampling 4:4:4. I had read elsewhere that images needed to use sampling 4:2:2 or 4:2:0 but I was having varying problems trying to convert what I had using GIMP. Either it (or I) wasn’t up to the challenge.
In the end I found ImageMagick’s “mogrify” the solution to my problems.
I’m running OSX El Capitan. I used MacPorts to install:
sudo port install ImageMagick
After a few minutes installation it is as simple as running “mogrify” over the images: