提交 5e36f57a 编写于 作者: G gongweibao

rm not need files

上级 b2ccc477
# Name
cp - copy files
# Synopsis
```
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
```
# 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
```
# Name
ls - list directory(ies)'s contents or file(s)'s attributes
# Synopsis
`ls [-r] <PFSPath> ...`
# 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
```
# Name
mkdir - mkdir directory(ies)
# Synopsis
`mkdir <PFSPath> ...`
# 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
```
# Name
mv - move (rename) files
# Synopsis
```
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:
-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
```
# Name
rm - remove files or directories
# Synopsis
```
rm [-r] [-v] <PFSPath> ...
```
# 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
```
# Name
sync - sync directories. Recursively copies new and updated files from the source directory to the destination.
# Synopsis
```
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.
-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 .
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册