From c431dffe85f176e4ca9e6ba796e5a419bfadbf77 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 29 Dec 2015 10:11:10 +0800 Subject: [PATCH] Fix file format for cp command. ref: #402 Signed-off-by: Bo-Yi Wu --- pages/common/cp.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pages/common/cp.md b/pages/common/cp.md index 789a371a5..f60ea70d7 100644 --- a/pages/common/cp.md +++ b/pages/common/cp.md @@ -8,14 +8,20 @@ - Copy a file to a parent directory -`cp {{/path/to/original}} ../{{/path/to/copy}}` +`cp {{/path/to/original}} ../{{path/to/copy}}` -- Copy directories recursive using the option -r. Optionally showing files as they are copied. +- Copy directories recursive using the option -r `cp -r {{/path/to/original}} {{/path/to/copy}}` + +- Show files as they are copied + `cp -vr {{/path/to/original}} {{/path/to/copy}}` -- Make a copy of a file adding and extension or changing an extension +- Make a copy of a file, adding an extension -`cp {{file.html}}\{,.backup\}` -`cp file.\{html,backup\}` +`cp {{file.html}}{,.backup}` + +- Make a copy of a file, changing the extension + +`cp {{file.}}{html,backup}`