Already a Week into 2019

While sitting in my chair working on a VM, I realized that the last blog post I did was on December 31st. So here’s a little review over the last week or so. There won’t be much technical content here, just a few musings.

We’ll start with the future. My cat, Lexis, will be having some dental work done at Duluth Animal Hospital on Thursday. This is the first time I’ve ever had a cat undergo a tooth cleaning; however, Dr. Diehl has discussed it with me in the past, and with his last visit, I’ve decided to go ahead and have it done. Dr. Diehl took the time to answer my questions and concerts, so I’m now comfortable putting Lexis through this procedure. He’s a good kitteh, and everyone wish him well!

Today I set a new personal record for jogging a mile: 13 minutes 17 seconds. I’ve been walking and jogging since September to try to fulfill a challenge my girlfriend gave me. She believes if I can jog two laps around a local park (2.5 miles), then I’m likely in good enough shape to return to Tae Kwon Do. Right now I’m jogging 1.25 miles and walking 1.25 miles four times a week. I crossed into 1.25 miles of jogging on January 1st, and I’m hoping by the end of February I’ll be ready to increase to 1.5 miles, which will decrease my walk to 0.75 miles.

And since the new year: I’ve been doing a good bit of planning and thinking about what I’d like to do with Eddie Jennings Services, LLC for 2019. A couple of things are in the works now (which involves the VM I was working on). I’ll do any relevant announcements on the business site.

Before I sign off, I do have to give one technical bit. --strip-components might be the best option available for tar.

Let’s say you have foo.tar.gz and within that is a folder foo and a ton of files. If you did this command tar -xzvf foo.tar.gz, then it’s going to expand everything into a folder named foo. This makes perfect sense, as the foo.tar archive is a folder plus files, and all the tar command did was decompress it (remove the .gz) and expand the resulting tar.

Now let’s say you want to extract just the files of foo.tar.gz into the /tmp directory, but not that top level folder. If you use the above command and add -C /tmp, then you’ll now have a folder named foo within /tmp with all of the files. Here’s where the magic happens. If you run this command, tar -xzvf foo.tar.gz --strip-components=1 -C /tmp, what will happen is the top-level will be removed, and /tmp will now have all of the files that were formerly within the foo directory. If file1 was a file within the folder foo, using this new command, the extracted file will now be /tmp/file1 rather than /tmp/foo/file1. Nifty right?

As I’m still learning my way through common applications like tar, feel free to comment if there’s a better way to do what I described.

Leave a Reply

Your email address will not be published. Required fields are marked *