Linux Blog

Geeky Songs

Filed under: General Linux — TheLinuxBlog.com at 5:30 am on Wednesday, November 3, 2010

Geeky Songs

How about a few geeky songs to liven up the dull workday? These are all pretty old as far as the internet goes, but they’re all goodies that can be fun to listen to every once in a while and I promise there will be none of Stallman’s doings after the jump.

(Read on …)

KDE End User Wiki

Filed under: Linux Software — TheLinuxBlog.com at 10:27 am on Friday, September 19, 2008

Today the KDE User base wiki (http://userbase.kde.org/) went live. If you’ve ever searched for information regarding an issue with KDE, its possible you would have come across the techbase (http://techbase.kde.org) The KDE Techbase is aimed more at developers and has some really good content regarding development. The KDE userbase Wiki also has some great information and you can learn a lot about KDE just by reading it. If you are a developer or an end user the userbase can be of great help, I just learned something new about plasma application launchers, check it out!

Tar Archive Mischief.

Filed under: Shell Script Sundays — TheLinuxBlog.com at 1:22 am on Sunday, June 1, 2008

I ran into a problem the other day when I downloaded a particular tar.gz archive (Simple Machine Forums to be specific.) The problem was that despite how good SMF might be the developers did not put the files in a folder before they tar.gz’d it. This is not the only time I have ran into this problem, a lot of developers actually do it. Over time its become a habit to assume that its in a folder.

Here’s a solution to delete all files that were extracted from an archive:

tar xvzf [filename] > [filename]-filelist.txt
cat filelist.txt | while read i; do rm $i; done;

If you want to, you can do a dry run of the script by putting an echo in front of the rm statement and looking at the output. All files that you had e.g index.php will have most likely been overwritten from the extract in the first place so, it doesn’t hurt to delete them.

Once you have deleted all of the files from the archive you can simply create a directory and use the following to extract to it:

tar xvzf  [filename] -C [yourdir]