Common linux commands: packaging, copying, and so on

Source: Internet
Author: User

Common linux commands: packaging, copying, and so on
Backup File

Tar-cf/home/app20140703bak.tar/home/app/uat/test. war

Copy the file to the target folder.
Example:
Cp-af/app/wasapp/appname_uat.ear/appname. war/*/app/wasapp/appname_rn_war.ear/appname_rn.war
Command details:
Directory where cp-ai source files are stored
++ At the same time, if a file with the same name exists during command execution, the system will prompt whether to overwrite the file. If you want to mark it, this is a good method. Of course, if you do not want this prompt, you can directly use the following command:
Folder where the cp-af source file is located

Delete an object
"Rm *. pdf" deletes all pdf files in the current pdf folder

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.