create, delete, Move file commands under Linux

Source: Internet
Author: User
<span id="Label3"><p>Create file: touch + filename</p><p>Delete file: rm + filename</p><p>Copy files: CP + filename + dirname</p><p>Moving files: mv + filename + dirname</p><p>Note: the above dirname must be a directory that already exists, if the directory does not exist, CP filename dirname means to copy the filename to the current directory, and the name of the copied file is DIRNAME,MV filename DirName means renaming the filename to DirName</p><p></p><p>Example:</p><p>Touch 1.c Create 1.c</p><p>CP 1.c/home/centos copy 1.c to The/home/centos directory</p><p>MV 1.c/home/centos move 1.c to The/home/centos directory</p><p>RM 1.c Delete 1.c</p><p>create, delete, Move file commands under Linux</p></span>

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.