From 00656cd8c40521e3ef0221e271d029379229f14f Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 15 Apr 2017 12:40:55 +0100 Subject: [PATCH] cp: remove shell expansion examples, add -r --- pages/common/cp.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pages/common/cp.md b/pages/common/cp.md index 7b5298862..ba3177ef1 100644 --- a/pages/common/cp.md +++ b/pages/common/cp.md @@ -12,7 +12,7 @@ - Copy a folder recursively to another location: -`cp {{/path/to/folder}} {{/path/to/copy}}` +`cp -r {{/path/to/folder}} {{/path/to/copy}}` - Copy a folder recursively into another folder, keeping the folder name: @@ -25,11 +25,3 @@ - Copy the contents of a folder into another folder: `cp -r {{/path/to/source/folder/*}} {{/path/to/target/folder}}` - -- Copy of a file adding an extension: - -`cp {{file.html}}{,.backup}` - -- Copy a file, changing the extension: - -`cp {{file.}}{html,backup}`