ls.md 693 字节
Newer Older
G
gongweibao 已提交
1
# Name  
G
gongweibao 已提交
2
ls - list directory contents or a file attributes
G
gongweibao 已提交
3 4

# Synopsis
G
gongweibao 已提交
5
` ls [OPTION]... <PFSPath>`
G
gongweibao 已提交
6 7 8

# Description

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

# Examples
G
gongweibao 已提交
18
- The following command lists a single file
G
gongweibao 已提交
19 20

```
G
gongweibao 已提交
21
paddle pfs ls pfs://mydir/text1.txt
G
gongweibao 已提交
22 23 24 25 26
```

Output

```
G
gongweibao 已提交
27
2017-05-5 17:04:30 text1.txt
G
gongweibao 已提交
28 29
```

G
gongweibao 已提交
30
- The following command lists directory contents
G
gongweibao 已提交
31 32

```
G
gongweibao 已提交
33
paddle pfs ls  pfs://mydir
G
gongweibao 已提交
34 35 36 37 38
```

Output

```
G
gongweibao 已提交
39 40 41
2017-05-5 17:04:30 text1.txt
2017-05-5 17:04:30 text2.txt
...
G
gongweibao 已提交
42
```