Bläddra i källkod

Merge pull request #415 from appleboy/patch-2

Fix file format ref: #402
Felix Yan 9 år sedan
förälder
incheckning
a9ad6d62a9
1 ändrade filer med 11 tillägg och 5 borttagningar
  1. 11 5
      pages/common/cp.md

+ 11 - 5
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}`
+
+- Make a copy of a file, changing the extension
 
-`cp {{file.html}}\{,.backup\}`
-`cp file.\{html,backup\}`
+`cp {{file.}}{html,backup}`