From 8af645808d33c40dec156ba07f78f8a7d6fa7b7d Mon Sep 17 00:00:00 2001 From: Erwann Mest Date: Tue, 28 Jan 2014 10:53:43 +0100 Subject: [PATCH] Reorganise cp. --- common/cp.md | 19 +++++++++++++++++++ osx/cp.md | 11 ----------- 2 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 common/cp.md delete mode 100644 osx/cp.md diff --git a/common/cp.md b/common/cp.md new file mode 100644 index 0000000000..fe035a5776 --- /dev/null +++ b/common/cp.md @@ -0,0 +1,19 @@ +# cp + +> Copy files + +- Copy files in arbitrary locations + +`cp {{/path/to/original}} {{/path/to/copy}}` + +- Copy a file to a parent directory + +`cp {{/path/to/original}} ../{{/path/to/copy}}` + +- Copy directories recursive using the option -r. + +`cp -r {{/path/to/original}} {{/path/to/copy}}` + +- Copy files in verbose mode, showing files as they are copied. (Mostly interesting with -r option). + +`cp -vr {{/path/to/original}} {{/path/to/copy}}` diff --git a/osx/cp.md b/osx/cp.md deleted file mode 100644 index 141b04276c..0000000000 --- a/osx/cp.md +++ /dev/null @@ -1,11 +0,0 @@ -# cp - -> Copies a file - -- copy files in arbitrary locations - -`cp {{/path/to/original}} {{/path/to/copy}}` - -- copy a file to a parent directory - -`cp {{/path/to/original}} ../{{/path/to/copy}}`