Do you use the Linux command line?

  

Think about it, what if you want to change the size of an image to a smaller size? Of course, I will definitely start a graphics editing software, then open the image file, select the relevant tool options from the menu, change the size, and then save the file. Even under Linux, I might do the same, as in Ubuntu, as shown below:

But actually, if you use the command line to change the size of the image, a statement can be done. It is. Such as:
convert -resize 300 profile.jpg profile_small.jpg

Of course, if you want to use such a command, you need to install Imagemagick, you can install it by apt-get install imagemagick.


Anyway, it’s very simple, here are a few more:

1)shadow the picture

shadow the picture to use The following command:
convert screenshot.jpg\\( +clone -background black -shadow 60×5+0+5 \\)+swap -background white -layers merge +repage shadow.jpg

The effect is as follows: Br>


2) Put two MP3s together
cat 1.mp3 2.mp3 > combined.mp3

3) Clone a hard disk device
dd if=/Dev/hda of=/dev/hdb

4) Burn the ISO file to CD
cdrecord -v speed=8 dev=0,0,0 name_of_iso_file.iso

5) Video format conversion

AVI and Mpeg conversion
ffmpeg -i video_origine.avi video_finale.mpgffmpeg -i video_origine.mpg video_finale.avi

Check out this link, you can see if ffmpeg can do more.

6) Replace the text in the file
sed ’s/#FF0000/#0000FF/g’ main.css

Replace #FF0000(红) in main.css with #0000FF (Blue)


If you really like the command line, then you must take a look at the following book (free online)

GNU/Linux command line introduction :http://en.flossmanuals.net/gnulinux

Copyright © Windows knowledge All Rights Reserved