This site is moved to other domain!

You should be automatically redirected in 9 seconds. If not, visit
and update your bookmarks.

Tuesday, March 24, 2009

Stumble Upon Toolbar
written by: Ukion in
[] [] []

Linux tip: How To Find and Execute Linux Commands and Files

Don't want to miss a single bit? Subscribe to our RSS Feed!

This is simple Linux tip for using find command. The find command in Linux is not only useful for finding files, but is also useful for processing the ones it finds too. Here is a quick example:

Suppose we have a lot of tarballs, and we want to find them all:

find . -name '*.gz'
will locate all the gzip archives in the current path. But suppose we want to check they are valid archives?

The gunzip -vt option will do this for us, but we can cunningly combine both operations, using xargs:
find . -name '*.gz' | xargs gunzip -vt

Subscribe to DetectorProDid you enjoy this post? Why not leave a comment below and continue the conversation, or Subscribe to Feed and get articles like this delivered automatically to your Email or feed reader.

Related articles by tags