mv.md 799 字节
Newer Older
G
gongweibao 已提交
1
# Name  
G
gongweibao 已提交
2
mv - move (rename) files
G
gongweibao 已提交
3 4 5 6


# Synopsis
```
G
gongweibao 已提交
7 8 9 10 11 12
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> 
G
gongweibao 已提交
13 14 15 16
```

# Description
```
G
gongweibao 已提交
17
The following options are available:
G
gongweibao 已提交
18

G
gongweibao 已提交
19 20
-f      
	Do not prompt for confirmation before overwriting the destination path.  (The -f option overrides previous -n options.)
G
gongweibao 已提交
21

G
gongweibao 已提交
22 23 24 25 26
-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.
G
gongweibao 已提交
27 28
```

G
gongweibao 已提交
29 30
# Examples
- The following command moves a single file to pfs
G
gongweibao 已提交
31 32

```
G
gongweibao 已提交
33
paddle pfs mv ./text1.txt /pfs/$DATACENTER/home/$USER/text1.txt
G
gongweibao 已提交
34
```