Sometimes the GUI is just too slow. Learn how to resize images, add drop shadows, splice mp3s, clone hard drives and more with the command line.
Here are a few tasks that you might want to consider using the command line for.
1. Resizing images
Unless you are doing some sort of cropping there is no reason to load up Photoshop or the Gimp. A simple command will usually suffice for almost all your image resizing needs.
If you finding yourself doing lots of image resizing during the day, this command could potentially save you a LOT of time. You can even do mass image resizing.
2. Adding a Drop Shadow to an Image
I found myself spending a ton of time adding drop shadows to images. Using a simple command I was able to create drop shadows in seconds.
Obviously, I don’t expect you to memorize this command. To shorten it use an alias.
3. Splice Together an MP3
If you want simple MP3 splicing this command has your back:
4. Clone a Hard Drive
DD is one the most simplistic and powerful image applications out there.
5. Burn an ISO to a CD
Why open up K3B or some other program just to burn an ISO? Map this command to an alias and get burning.
Note: You need to get the info for the ‘dev=’ part by running ‘cdrecord -scanbus’
6. Video Conversions
Let’s say you want to convert an AVI to an Mpeg file:
Or convert an Mpeg to AVI:
There are all sorts of things you can do with ffmpeg.
7. Replace Words in a Text File
No need to open up a GUI text editor when you have sed.
This command from Eric’s Wendelin’s blog will replace all instances of a color in CSS with another one.