$ mv thisisareallylongfilename{,.txt}
This command will rename the file "thisisareallylongfilename" to "thisisareallylongfilename.txt", so you don't have to double this long file name, although there is in the shell The tab button automatically fills in the file name. This tip doesn't seem to be very useful, but it is still very useful in shell scripts.$ mv foo.{jpeg,jpg}
This command will rename foo.jpeg to foo.jpg. Some extended characters in the shell are often overlooked. For example, you need to enter all the characters of the previous command, you can use !! to achieve:$ ~/foo.sh-bash: /home/lveyo/foo.sh: Permission denied$ sh !!sh ~/foo.sh
There are other uses: !* will replace all the parameters of the previous command, (!! is the entire command and all parameters) !$ Previous command The last parameter!:3 The third parameter of the previous command is: $ ls /tmp/somedir
ls: cannot access /tmp/somedir: No such file or directory $ mkdir -p !*
mkdir - p /tmp/somedir $ touch 1 2 3 $ cp !:2 /tmp/somedir
cp 2 /tmp/somedir These small tips hope to help everyone, improve the interest in command line operations, walk into the command It’s the way to go into the real world of Linux.
There is no doubt that Red Hat is indeed the choice of many companies considering Linux, but in rece
6. Sfdisk & ndash; backup partition table If you install multiple systems, it can easily lead to
First of all, I would like to thank community enthusiasts and supporters for their attention to Linu
When we write the shell, there will be such a scene: For example: I want to back up the passwd fil
Unix timestamp functions in different languages
Solve the problem of starting Tomcat under Linux. Neither the JAVA
How to run or demonstrate a Linux system without installation
Linux driver, when the probe function is called
A revolution in the operating system Linux system storms 15 years
Linux service security ssh anti-brute force crack
Linux terminal terminal commonly used shortcuts
Turn off the annoying notification feature in Windows XP SP2 completely
Add a solid security lock for Windows XP
Get Win8 Media Center for Free: Experience the fun of multimedia
What should I do if I can't open the notebook under Win7?
How to block or block webpage ads
What are the new features of the Win10 system? Win10 new features summary
AutoCAD produces exquisite 3D bird cages