Today in the deletion of this filename delete to nausea:
-rw-r--r--1 Work work 0 Mar 17:27-RW-R--R--0.L
-rw-r--r--1 Work work 0 Mar 17:27-RW-R--R--1.L
-rw-r--r--1 Work work 0 Mar 17:27-RW-R--R--2.L
-rw-r--r--1 Work work 0 Mar 17:27-RW-R--R--3.L
-rw-r--r--1 Work Work 17:27-rw-r--r--. R
-rw-r--r--1 Work work 0 Mar 17:27-RWXR--R--0.L
-rw-r--r--1 Work work 0 Mar 17:27-RWXR--R--1.L
-rw-r--r--1 Work work 0 Mar 17:27-RWXR--R--2.L
-rw-r--r--1 Work work 0 Mar 17:27-RWXR--R--3.L
-rw-r--r--1 Work Work 17:27-rwxr--r--. R
Specific measures:
Linux "-" has a special meaning, such as "-" at the back of the command followed by the option. But how to create a new name with a "-", here are three ways to do this, such as creating a new file "-a":
1, CD. >-A
2, VI---a
3, echo "" >-A
The above three methods can be in the current directory to create a "-a" file, of course, there are other ways to create new, this is not the introduction. If you want to delete "-a" is more trouble, if you enter Rm-a, the system will prompt you:
RM: Invalid option--A
Try to perform ' rm--help ' to get more information.
There are two ways to delete such a file, as follows:
1, RM./-a
2, RM---A
Change the name also needless to say, basically in front of the filename plus "--" to indicate the escape character on it!