Multiple Personalities
With the snazzy little program GNU Parallel, you can make use of the full power of your multicore CPUs through scripts.
|
Lead Image © Ilka Burckhardt, Fotolia.com
With the snazzy little program GNU Parallel, you can make use of the full power of your multicore CPUs through scripts.
When you get back from vacation, you probably have tons of snapshots stored on your camera. If you want to reduce the resolution of photos so you can upload your pics to a web gallery, the following one-liner for Mogrify from the ImageMagick package is usually sufficient:
$ for i in *.tif; do mogrify -resize 50% $i; done
The command combs through all files with the .tif ending in the current directory (for i in *.tif ) and has Mogrify reduce their size by a half (mogrify -resize 50% ). Because the command processes the files sequentially, a modern core processor running at full speed is still basically twiddling its thumbs. It would be much more effective and faster to process multiple photos simultaneously. This is where the somewhat unjustly overlooked tool called GNU Parallel comes in.
[...]
Pages: 4
The moreutils package expands the standard tools for the shell with useful and sometimes exotic tools.
Managing multiple computers can often be accomplished just by using SSH, etc. You don't necessarily need to have a big, complex solution like Puppet or Cfengine.
Some pictures call for a particularly skillful photographer – either that or a computer with gPhoto2. The gPhoto tool helps you create sequential shots that won't try your patience.
The Rodent data manager can do more than just move files. However, it's not always easy or intuitive to use.
KVM, with its small yet great set of command-line tools, lets you quickly start virtual machines without having to click through cumbersome menus.
© 2025 Linux New Media USA, LLC – Legal Notice