Archive for the ‘ Shell Commands ’ Category

Linux command to find cpu processor speed

Here’s an easy shell command to get info about a computer’s cpu:
cat /proc/cpuinfo
It should give you some output like this:

Typical output from cat /proc/cpuinfo

Typical output from cat /proc/cpuinfo

Read more

Batch edit images with Imagemagick

It’s easy to edit multiple images from the command line with ImageMagick. You can rotate, resize, or crop without having to open up any slow programs. We’ll use a bash one-liner — a simple one-line shell script — to accomplish this.

You’ll want to start with a folder with nothing in it but the images that you want to edit.  Make a folder inside your images folder, called “edited”.

A folder with some images in it

A folder with some images in it

Read more