Linux CP Command Usage

Source: Internet
Author: User


[Email protected] 20141011ntlib]# Ls-al

Total 16

Drwxr-xr-x. 4 root root 4096 Oct 11 11:41.

Drwxrwxr-x. Bluesun Bluesun 4096 Oct 11 11:41..

-rw-r--r--. 1 root root 0 Oct 11 11:41 1

Drwxr-xr-x. 4 root root 4096 Oct one-off JSP

Drwxr-xr-x. 3 root root 4096 Oct Web-inf

[Email protected] 20141011ntlib]# pwd

/root/20141011ntlib

Test is an empty folder

[Email protected] test]# pwd

/root/test

Cp-r 20141011ntlib/test/

[Email protected] test]# Ls-al

Total 12

Drwxr-xr-x. 3 root root 4096 Oct 11 11:45.

Drwxrwxr-x. Bluesun Bluesun 4096 Oct 11 11:41..

Drwxr-xr-x. 4 root root 4096 Oct 11:45 20141011ntlib

[email protected] ~]# cp-r 20141011ntlib/. Test

[[Email protected] ~]# CD test

[Email protected] test]# Ls-al

Total 16

Drwxr-xr-x. 4 root root 4096 Oct 11 11:54.

Drwxrwxr-x. Bluesun Bluesun 4096 Oct 11 11:41..

-rw-r--r--. 1 root root 0 Oct 11 11:54 1

Drwxr-xr-x. 4 root root 4096 Oct one 11:54 JSP

Drwxr-xr-x. 3 root root 4096 Oct 11:54 Web-inf

After file changes, overwrite to test Directory

[email protected] 20141011ntlib]# LS-LR

.:

Total 4

-rw-r--r--. 1 root root 0 Oct 11 11:58 2

-rw-r--r--. 1 root root 0 Oct 11 11:58 3

Drwxr-xr-x. 2 root root 4096 Oct one 11:59 JSP

./jsp:

Total 0

-rw-r--r--. 1 root root 0 Oct 11:59 abcdef.jsp

[email protected] ~]# cp-r 20141011ntlib/. Test

[email protected] ~]# LS-LR Test

Test

Total 8

-rw-r--r--. 1 root root 0 Oct 11 12:02 1

-rw-r--r--. 1 root root 0 Oct 12:03 2

-rw-r--r--. 1 root root 0 Oct 12:03 3

Drwxr-xr-x. 4 root root 4096 Oct one 12:03 JSP

Drwxr-xr-x. 3 root root 4096 Oct 12:02 Web-inf

TEST/JSP:

Total 16

-rw-r--r--. 1 root root 0 Oct 12:03 abcdef.jsp

Drwxr-xr-x. 2 root root 4096 Oct 12:02 Bookcatalogue

-rw-r--r--. 1 root root 7290 Oct 12:02 index.jsp

Drwxr-xr-x. 2 root root 4096 Oct 12:02 web

[Email protected] test]# RM-RF *


This article is from the "Wawa" blog, make sure to keep this source http://363340.blog.51cto.com/353340/1562474

Linux CP Command Usage

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.