Legal Disclaimer

The opinions stated here in this ‘blog or elsewhere on my web site are my own. Any or all facts (real or imagined) are typically presented from my personal point of view. Furthermore these facts and opinions do not necessarily represent or even agree with those of my family, my employer, the US Government, any other organization, or entity (real or imagined). Any similarity (real or imagined) to other individuals, animals, places, items or concepts is purely coincidental.

2007-07-20

I love the linux command line 

I recently had an external hard drive die. It had been kind of flaky since I fell down the stairs at x-mass and dropped it about 6 ft. Since I knew it wasn't working well, I was using mostly as yet another location for backing up data (like from my parent's home network). So when I finally gave up on it this week, I had lost any data.

In planning for the replacement, I was trying to remember the hardware in the Ubuntu server, PopsHP, I have setup for my parents in their condo. A quick search of Google showed me the lshw command. It was already installed on PopsHP and when I ran it (via an ssh connection), it suggested that "you should run this program as super-user". Which I did and piped the resulting text to a file. Next I ran a little script I have that uses rsync to transfer files to a subdirectory in my home folder on my main desktop machine. So in under five minutes I had a complete and detailed listing of the hardware in PopsHP, on my local machine.

Then as a bonus, as I was typing up this blog post, I discovered that lshw will format its output as HTML. So in under a minute, I reran the entire process adding in the HTML command line switch.

What can I say except that I love linux.

Comments: Post a Comment