Linux Environment renaming files

Source: Internet
Author: User

When renaming a file in a Linux environment, if the renamed file name is the same as the file name that already exists under the current path, the renamed file overwrites the file content of the same name;

For example: New file Testfile1, content is mytest;

New file Testfile2, content is test;

After performing the MV Testfile1 testfile2 command, the current path has only one testfile2 file, the content is mytest;

Test the file with the same name to the processing mechanism should be noted;

Linux Environment renaming files

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.