rm deleting (clearing) one or more files -f option will force the file to be deleted, even if the file is read-only and can be used to avoid user input (used in non-interactive scripts). The directory after the file whose name starts with a special symbol, such as .mk @, can be deleted directly by rm -rf, or by adding the escaping character & rdquo;\\”
I encountered this situation today ……
rm will not be able to delete files starting with a dash.
rm -slow_query_130103.txt.gz
rm: invalid option -- s
Try `rm ./-slow_query_130103.txt.gz' to remove the file `-slow_query_130103.txt.gz'.
Try `rm -- Help' for more information.
Officially made a special note in the help documentation:
To remove a file whose name starts with a `-', for example `-foo', use one Of these commands: rm -- -foo
rm ./-foo
One way to solve this problem is to add "./" to the front of the file to be deleted.
# rm ./-slow_query_130103.txt.gz
rm: remove regular file `./-slow_query_130103.txt.gz'?
Another solution Add " -- ". in front of the file name.
# rm -- -slow_query_130102.txt.gz
rm: remove regular file `-slow_query_130102.txt.gz' ?
With the rapid development of the Internet, more and more people use computers to obtain information
Overview This article describes how to transfer files between a Linux host and a Windows host. Beca
After VPN connection is established, need to make the following settings: 1, click & ldquo; att
In the window we can implement multiple IP addresses for one network card and load balancing and re
Unable to start Linux after installing Windows XP
64-bit Ubuntu can not install 32-bit compatible library solution
Linux Tips: Introduce two ways to modify port 22
Test your UNIX basic knowledge how many
Common command of vim in Linux
Desktop Linux Standards Learned Windows Compatible
How to make win2003 automatically log in after the launch of
Linux boot will not start the network card problem
Startup tutorial for multiple Oracle instances under Linux platform
LVM configuration under SUSE server
How to solve IE11 stop working under Win8.1?
Win8.1 upgrade Win10 blue screen solution
Win8 system SkyDrive function experience Convenient storage
Win7 pure version 32-bit taskbar on the right how to do
Add boot killer function to Windows XP and Vista (2)
Win8 IE10 Metro Edition common problem solution
What causes the desktop screen to flicker? How to solve the black screen of the display?
Lenovo Y40 notebook win7 system often occasionally crashes the cause and countermeasures
How to see WinXP system memory? WinXP system to view the memory method