How to handle special file names in Linux

Source: Internet
Author: User
For details about how to handle special file names in Linux-General Linux technology-Linux technology and application information, see the following. Suppose there is a file name named "-ee" in Linux. if we want to operate on it, for example, to delete it, enter the rm-ee command in the command line according to the general deletion method, the interface prompts "invalidoption". since the first character of the file name is "-", Linux regards the file name as an option, to solve this problem, run the "--" command to delete the file named "-ee.

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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.