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
directory summary: /: root directory, generally only the directory under the root directory, do not
If you are a Linux user, you may have heard that you dont need to defrag your Linux files system. Yo
1. Get root privileges without logging in. If you dont set GRUB password, then we can use the easie
System availability can be greatly improved by hardware redundancy or software. Hardware redundancy
Five improvements to Ubuntu Lucid Alpha 2 released
How to use the Linux operating system Rar compressed file package
Qq for linux installation and uninstallation
Squid log file is too large, how to deal with it?
Rookie class: teach you how to improve the security of Linux system
Three lightweight WebServer--lighttpd, thttpd, shttpd introduction
Virtualbox command line sharing CentOS directory
Linux shell time calculation and time difference calculation method
Win8.1 How to put my computer on the desktop Win8.1 Where is my computer?
Mining the potential of Windows7 system to improve IE8 self-protection ability
How does Win7 open the upnp service? Win7 open upnp service method
Windows 10 will divide the screen into four equal parts.
Windows10 virtual machine settings and adjustments
Shy v. win8 system minimum configuration requirements
Wubi 86 Edition Typing Tutorial
IIS has a "requested resource in use" solution
How does Win10 turn off the windows ink function? Win10 closes the windows ink method
How to set the alarm clock function in win7 system computer?