parent
327727d462
commit
60f69c2b0e
@ -1,41 +1,45 @@
|
||||
# Name
|
||||
cp - copy files and directories
|
||||
cp - copy files
|
||||
|
||||
# Synopsis
|
||||
` cp [OPTION]...
|
||||
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>`
|
||||
```
|
||||
cp [-r] [-f | -n] [-v] [--preserve--links] <LocalPath> <PFSPath>
|
||||
cp [-r] [-f | -n] [-v] [--preserve--links] <LocalPath> ... <PFSPath>
|
||||
cp [-r] [-f | -n] [-v] [--preserve--links] <PFSPath> <LocalPath>
|
||||
cp [-r] [-f | -n] [-v] [--preserve--links] <PFSPath> ... <LocalPath>
|
||||
cp [-r] [-f | -n] [-v] [--preserve--links] <PFSPath> <PFSPath>
|
||||
cp [-r] [-f | -n] [-v] [--preserve--links] <PFSPath> ... <PFSPath>
|
||||
```
|
||||
|
||||
# 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
|
||||
|
||||
-R, -r, --recursive
|
||||
Copy directories recursively
|
||||
```
|
||||
|
||||
# Examples
|
||||
- The following command copies a single file to pfs
|
||||
|
||||
```
|
||||
paddle pfs cp ./text1.txt /pfs/mydir/text1.txt
|
||||
```
|
||||
|
||||
Output
|
||||
|
||||
```
|
||||
upload ./text1.txt to /pfs/mydir/text1.txt
|
||||
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/mydir/text1.txt ./text1.txt
|
||||
```
|
||||
|
||||
Output
|
||||
|
||||
```
|
||||
download /pfs/mydir/text1.txt to ./text1.txt
|
||||
paddle pfs cp /pfs/$DATACENTER/home/$USER/text1.txt ./text1.txt
|
||||
```
|
||||
|
@ -1,42 +1,27 @@
|
||||
# Name
|
||||
ls - list directory contents or a file attributes
|
||||
ls - list directory(ies)'s contents or file(s)'s attributes
|
||||
|
||||
# Synopsis
|
||||
` ls [OPTION]... <PFSPath>`
|
||||
`ls [-r] <PFSPath> ...`
|
||||
|
||||
# Description
|
||||
|
||||
```
|
||||
-R, -r, --recursive
|
||||
Copy directories recursively
|
||||
|
||||
--page-size (integer)
|
||||
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if operation time out.
|
||||
```
|
||||
The following options are available:
|
||||
|
||||
-r
|
||||
List directory(ies) recursively
|
||||
```
|
||||
|
||||
# Examples
|
||||
- The following command lists a single file
|
||||
|
||||
```
|
||||
paddle pfs ls /pfs/mydir/text1.txt
|
||||
```
|
||||
|
||||
Output
|
||||
|
||||
```
|
||||
2017-05-5 17:04:30 text1.txt
|
||||
paddle pfs ls /pfs/$DATACENTER/home/$USER/text1.txt
|
||||
```
|
||||
|
||||
- The following command lists directory contents
|
||||
|
||||
```
|
||||
paddle pfs ls /pfs/mydir
|
||||
```
|
||||
|
||||
Output
|
||||
|
||||
```
|
||||
2017-05-5 17:04:30 text1.txt
|
||||
2017-05-5 17:04:30 text2.txt
|
||||
...
|
||||
paddle pfs ls / /pfs/$DATACENTER/home/$USER/folder
|
||||
```
|
||||
|
@ -1,28 +1,34 @@
|
||||
# Name
|
||||
mv - move (rename) files or directories
|
||||
mv - move (rename) files
|
||||
|
||||
|
||||
# Synopsis
|
||||
If destination already exist, please [rm](rm.md) it first.
|
||||
|
||||
```
|
||||
mv [OPTION]...
|
||||
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>
|
||||
mv [-f | -n] [-v] <LocalPath> <PFSPath>
|
||||
mv [-f | -n] [-v] <LocalPath> ... <PFSPath>
|
||||
mv [-f | -n] [-v] <PFSPath> <LocalPath>
|
||||
mv [-f | -n] [-v] <PFSPath> ... <LocalPath>
|
||||
mv [-f | -n] [-v] <PFSPath> <PFSPath>
|
||||
mv [-f | -n] [-v] <PFSPath> ... <PFSPath>
|
||||
```
|
||||
|
||||
# Description
|
||||
```
|
||||
```
|
||||
The following options are available:
|
||||
|
||||
# Examples
|
||||
- The following command move a single file to pfs
|
||||
-f
|
||||
Do not prompt for confirmation before overwriting the destination path. (The -f option overrides previous -n options.)
|
||||
|
||||
```
|
||||
paddle pfs mv ./text1.txt /pfs/mydirectory/test1.txt
|
||||
-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.
|
||||
```
|
||||
|
||||
Output
|
||||
# Examples
|
||||
- The following command moves a single file to pfs
|
||||
|
||||
```
|
||||
move ./text1.txt /pfs/mydirectory/test1.txt
|
||||
paddle pfs mv ./text1.txt /pfs/$DATACENTER/home/$USER/text1.txt
|
||||
```
|
||||
|
@ -1,42 +1,34 @@
|
||||
# Name
|
||||
sync - sync directories. Recursively copies new and updated files from the source directory to the destination
|
||||
sync - sync directories. Recursively copies new and updated files from the source directory to the destination.
|
||||
|
||||
# Synopsis
|
||||
` sync [OPTIONS]...
|
||||
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>`
|
||||
```
|
||||
sync [--preserve--links] [-v] <LocalPath> <PFSPath>
|
||||
sync [--preserve--links] [-v] <PFSPath> <LocalPath>
|
||||
sync [--preserve--links] [-v] <PFSPath> <PFSPath>`
|
||||
```
|
||||
|
||||
# Description
|
||||
|
||||
```
|
||||
The following options are available:
|
||||
|
||||
--preserve--links
|
||||
Reserve links when copy 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/mydir1
|
||||
```
|
||||
|
||||
Output
|
||||
|
||||
```
|
||||
upload ./dir1/text1.txt to /pfs/mydir1/text2.txt
|
||||
upload ./dir1/text2.txt to /pfs/mydir1/text2.txt
|
||||
...
|
||||
```
|
||||
|
||||
- The following command sync pfs directory to local
|
||||
- The following command sync locally directory to pfs.
|
||||
|
||||
```
|
||||
paddle pfs sync /pfs/mydir1 .
|
||||
paddle pfs sync ./dir1 /pfs/$DATACENTER/home/$USER/mydir1
|
||||
```
|
||||
|
||||
Output
|
||||
- The following command sync pfs directory to local.
|
||||
|
||||
```
|
||||
download /pfs/mydir1/text1.txt to ./text1.txt
|
||||
download /pfs/mydir1/text2.txt to ./text2.txt
|
||||
...
|
||||
paddle pfs sync /pfs/$DATACENTER/home/$USER/mydir1 .
|
||||
```
|
||||
|
Loading…
Reference in new issue