Processing Special file names in a Linux system-Linux general technology-Linux technology and application information. The following is a detailed description. Suppose there is a file name named "-aaa" in Linux. If we want to operate on it, for example, to delete it now, if we enter the rm-aaa command in the command line according to the general deletion method, the interface will prompt that we are an invalid option (invalid option), because the first character of the file name is -, linux regards the file name as an option. We can use the "--" symbol to solve this problem.
For example, you can run the rm ---aaa command to delete the-aaa file. If it is another special character, you can add a "" symbol before the special character, or use double quotation marks to enclose the entire file name.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service