blog:command_line_tipps
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blog:command_line_tipps [2010-09-17 08:45] – created brb | blog:command_line_tipps [2010-09-17 08:47] (current) – brb | ||
---|---|---|---|
Line 5: | Line 5: | ||
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. | 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. | ||
- | convert -resize 300 image.jpg image-small.jpg | + | |
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. | 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. | ||
Line 12: | Line 12: | ||
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. | 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. | ||
- | + | | |
- | suse screenshot | + | |
- | convert screenshot.jpg \( +clone -background black -shadow 60×5+0+5 \) +swap -background white -layers merge +repage shadow.jpg | + | |
Note: You must have Imagemagick installed for this command to work. Debian/ | Note: You must have Imagemagick installed for this command to work. Debian/ | ||
- | |||
- | screenshot dropshadow | ||
Obviously, I don’t expect you to memorize this command. To shorten it use an alias. | Obviously, I don’t expect you to memorize this command. To shorten it use an alias. | ||
Line 25: | Line 21: | ||
===== Splice Together an MP3 ===== | ===== Splice Together an MP3 ===== | ||
If you want simple MP3 splicing this command has your back: | If you want simple MP3 splicing this command has your back: | ||
- | cat 1.mp3 2.mp3 > combined.mp3 | + | |
===== Clone a Hard Drive ===== | ===== Clone a Hard Drive ===== | ||
DD is one the most simplistic and powerful image applications out there. | DD is one the most simplistic and powerful image applications out there. | ||
- | dd if=/dev/hda of=/dev/hdb | + | |
===== Burn an ISO to a CD ===== | ===== 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. | Why open up K3B or some other program just to burn an ISO? Map this command to an alias and get burning. | ||
- | cdrecord -v speed=8 dev=0,0,0 name_of_iso_file.iso | + | |
Note: You need to get the info for the ‘dev=’ part by running ‘cdrecord -scanbus’ | Note: You need to get the info for the ‘dev=’ part by running ‘cdrecord -scanbus’ | ||
Line 40: | Line 36: | ||
===== Video Conversions ===== | ===== Video Conversions ===== | ||
Let’s say you want to convert an AVI to an Mpeg file: | Let’s say you want to convert an AVI to an Mpeg file: | ||
- | ffmpeg -i video_origine.avi video_finale.mpg | + | |
Or convert an Mpeg to AVI: | Or convert an Mpeg to AVI: | ||
- | ffmpeg -i video_origine.mpg video_finale.avi | + | |
There are all sorts of things you can do with ffmpeg. | There are all sorts of things you can do with ffmpeg. | ||
Line 52: | Line 48: | ||
This command from Eric’s Wendelin’s blog will replace all instances of a color in CSS with another one. | This command from Eric’s Wendelin’s blog will replace all instances of a color in CSS with another one. | ||
- | sed ’s/# | + | |
+ | |||
+ | Ref: http:// | ||
{{tag> | {{tag> |
blog/command_line_tipps.1284705939.txt.gz · Last modified: 2010-09-17 08:45 by brb