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
The following options are available:
--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.
-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
@@ -3,43 +3,30 @@ rm - remove files or directories
# Synopsis
```
rm [OPTION]... <PFSPath>...
rm [-r] [-v] <PFSPath> ...
```
# Description
```
-r, -R, --recursive
The following options are available:
-r
remove directories and their contents 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 an operation times out
-v
Cause rm to be verbose, showing files after they are removed.
```
# Examples
- The following command deletes a single files
```
paddle pfs rm /pfs/mydirectory/test1.txt
```
Output
```
delete /pfs/mydirectory/test1.txt
```
- The following command deletes a directory recursively.