Skip to content

notes to self

a document of a plodding mind

Menu
Menu

Piping hot ball of Tar.

Posted on July 27, 2010 by abram

For those who have gotten into the idea of typing commands as little as possible, here’s out to pipe the output from tar straight into a gzip file.

tar cvf - myfile.jpg | gzip > myfile.tar.gz
tar cvf - folder | gzip > folder_backup.tar.gz

Take note of the second example and notice how folder does not contain the trailing forward slash. The forward slash denotes everything inside the folder while leaving it off copies the entire folder itself into the archive. This way causes the extraction process recreate the folder while to former will only extract the files within the folder.

Leave a Reply Cancel reply

You must be logged in to post a comment.

about

Abram Morphew is an electrical engineer, bedroom musician, composer, naturalist, and amateur scientist. I play music in the the binary marketing show. This blog is a catalog of stuff that I make or bits of information that I think could prove useful later on when memory fails me.

 

I currently hold an Extra Class Amateur Radio Operator license and transmit on the air as K2NXF.

Tags

40m amp amplifier Arduino atmega328 atmel audio bash bjt breadboard circuit code cw delay digital effect effects electrical electronics homebrew lfo linux LM386 mellotronium music no. 5 opamp oscillator pcb pedal photos php pt2399 pwm radio rf schematic stereo stompbox synth tape TDA2040 tl072 TL082 tube

Social

  • Instagram
  • LinkedIn

Space Weather


© 2026 notes to self | Powered by Minimalist Blog WordPress Theme