From 5e36f57a5e1be4295f453a0eaff73481b1cf0c2a Mon Sep 17 00:00:00 2001 From: gongweibao Date: Sun, 14 May 2017 11:33:40 +0800 Subject: [PATCH] rm not need files --- doc/design/file_manager/pfs/cp.md | 45 ---------------------------- doc/design/file_manager/pfs/ls.md | 27 ----------------- doc/design/file_manager/pfs/mkdir.md | 13 -------- doc/design/file_manager/pfs/mv.md | 34 --------------------- doc/design/file_manager/pfs/rm.md | 32 -------------------- doc/design/file_manager/pfs/sync.md | 34 --------------------- 6 files changed, 185 deletions(-) delete mode 100644 doc/design/file_manager/pfs/cp.md delete mode 100644 doc/design/file_manager/pfs/ls.md delete mode 100644 doc/design/file_manager/pfs/mkdir.md delete mode 100644 doc/design/file_manager/pfs/mv.md delete mode 100644 doc/design/file_manager/pfs/rm.md delete mode 100644 doc/design/file_manager/pfs/sync.md diff --git a/doc/design/file_manager/pfs/cp.md b/doc/design/file_manager/pfs/cp.md deleted file mode 100644 index 1f1670e8827..00000000000 --- a/doc/design/file_manager/pfs/cp.md +++ /dev/null @@ -1,45 +0,0 @@ -# Name -cp - copy files - -# Synopsis -``` -cp [-r] [-f | -n] [-v] [--preserve--links] -cp [-r] [-f | -n] [-v] [--preserve--links] ... -cp [-r] [-f | -n] [-v] [--preserve--links] -cp [-r] [-f | -n] [-v] [--preserve--links] ... -cp [-r] [-f | -n] [-v] [--preserve--links] -cp [-r] [-f | -n] [-v] [--preserve--links] ... -``` - -# Description -``` -The following options are available: - --r - Copy directories recursively - --f - Do not prompt for confirmation before overwriting the destination path. (The -f option overrides previous -n options.) - --n - Do not overwrite an existing file. (The -n option overrides previous -f options.) - --v - Cause cp to be verbose, showing files after they are copied. - ---preserve--links - Reserve links when copy links -``` - -# Examples -- The following command copies a single file to pfs - -``` -paddle pfs cp ./text1.txt /pfs/$DATACENTER/home/$USER/text1.txt -``` - -- The following command copies pfs file to a local file - -``` -paddle pfs cp /pfs/$DATACENTER/home/$USER/text1.txt ./text1.txt -``` diff --git a/doc/design/file_manager/pfs/ls.md b/doc/design/file_manager/pfs/ls.md deleted file mode 100644 index 0db163e08bd..00000000000 --- a/doc/design/file_manager/pfs/ls.md +++ /dev/null @@ -1,27 +0,0 @@ -# Name -ls - list directory(ies)'s contents or file(s)'s attributes - -# Synopsis -`ls [-r] ...` - -# Description - -``` -The following options are available: - --r - List directory(ies) recursively -``` - -# Examples -- The following command lists a single file - -``` -paddle pfs ls /pfs/$DATACENTER/home/$USER/text1.txt -``` - -- The following command lists directory contents - -``` -paddle pfs ls / /pfs/$DATACENTER/home/$USER/folder -``` diff --git a/doc/design/file_manager/pfs/mkdir.md b/doc/design/file_manager/pfs/mkdir.md deleted file mode 100644 index 3ca51704027..00000000000 --- a/doc/design/file_manager/pfs/mkdir.md +++ /dev/null @@ -1,13 +0,0 @@ -# Name -mkdir - mkdir directory(ies) - -# Synopsis -`mkdir ...` - -# Description -Create the pfs directory(ies), if it(they) does(do) not already exist. And create intermediate directories as required. - -# Examples -``` -paddle pfs mkdir /pfs/$DATACENTER/home/$USER/folder -``` diff --git a/doc/design/file_manager/pfs/mv.md b/doc/design/file_manager/pfs/mv.md deleted file mode 100644 index 01b795be02c..00000000000 --- a/doc/design/file_manager/pfs/mv.md +++ /dev/null @@ -1,34 +0,0 @@ -# Name -mv - move (rename) files - - -# Synopsis -``` -mv [-f | -n] [-v] -mv [-f | -n] [-v] ... -mv [-f | -n] [-v] -mv [-f | -n] [-v] ... -mv [-f | -n] [-v] -mv [-f | -n] [-v] ... -``` - -# Description -``` -The following options are available: - --f - Do not prompt for confirmation before overwriting the destination path. (The -f option overrides previous -n options.) - --n - Do not overwrite an existing file. (The -n option overrides previous -f options.) - --v - Cause mv to be verbose, showing files after they are moved. -``` - -# Examples -- The following command moves a single file to pfs - -``` -paddle pfs mv ./text1.txt /pfs/$DATACENTER/home/$USER/text1.txt -``` diff --git a/doc/design/file_manager/pfs/rm.md b/doc/design/file_manager/pfs/rm.md deleted file mode 100644 index 8bcbabdfb10..00000000000 --- a/doc/design/file_manager/pfs/rm.md +++ /dev/null @@ -1,32 +0,0 @@ -# Name -rm - remove files or directories - -# Synopsis -``` -rm [-r] [-v] ... -``` - -# Description - -``` -The following options are available: - --r - remove directories and their contents recursively - --v - Cause rm to be verbose, showing files after they are removed. -``` - -# Examples -- The following command deletes a single file: - -``` -paddle pfs rm /pfs/$DATACENTER/home/$USER/test1.txt -``` - -- The following command deletes a directory recursively: - -``` -paddle pfs rm -r /pfs/$DATACENTER/home/$USER/folder -``` diff --git a/doc/design/file_manager/pfs/sync.md b/doc/design/file_manager/pfs/sync.md deleted file mode 100644 index 4801ceedf92..00000000000 --- a/doc/design/file_manager/pfs/sync.md +++ /dev/null @@ -1,34 +0,0 @@ -# Name -sync - sync directories. Recursively copies new and updated files from the source directory to the destination. - -# Synopsis -``` -sync [--preserve--links] [-v] -sync [--preserve--links] [-v] -sync [--preserve--links] [-v] ` -``` - -# Description - -``` -The following options are available: - ---preserve--links - Reserve links when copy links. - --v - Cause sync to be verbose, showing files after their's synchronization is complete. -``` - -# Examples -- The following command sync locally directory to pfs. - -``` -paddle pfs sync ./dir1 /pfs/$DATACENTER/home/$USER/mydir1 -``` - -- The following command sync pfs directory to local. - -``` -paddle pfs sync /pfs/$DATACENTER/home/$USER/mydir1 . -``` -- GitLab