github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/docs/content/commands/rclone_ls.md (about) 1 --- 2 date: 2019-06-20T16:09:42+01:00 3 title: "rclone ls" 4 slug: rclone_ls 5 url: /commands/rclone_ls/ 6 --- 7 ## rclone ls 8 9 List the objects in the path with size and path. 10 11 ### Synopsis 12 13 14 Lists the objects in the source path to standard output in a human 15 readable format with size and path. Recurses by default. 16 17 Eg 18 19 $ rclone ls swift:bucket 20 60295 bevajer5jef 21 90613 canole 22 94467 diwogej7 23 37600 fubuwic 24 25 26 Any of the filtering options can be applied to this command. 27 28 There are several related list commands 29 30 * `ls` to list size and path of objects only 31 * `lsl` to list modification time, size and path of objects only 32 * `lsd` to list directories only 33 * `lsf` to list objects and directories in easy to parse format 34 * `lsjson` to list objects and directories in JSON format 35 36 `ls`,`lsl`,`lsd` are designed to be human readable. 37 `lsf` is designed to be human and machine readable. 38 `lsjson` is designed to be machine readable. 39 40 Note that `ls` and `lsl` recurse by default - use "--max-depth 1" to stop the recursion. 41 42 The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use "-R" to make them recurse. 43 44 Listing a non existent directory will produce an error except for 45 remotes which can't have empty directories (eg s3, swift, gcs, etc - 46 the bucket based remotes). 47 48 49 ``` 50 rclone ls remote:path [flags] 51 ``` 52 53 ### Options 54 55 ``` 56 -h, --help help for ls 57 ``` 58 59 See the [global flags page](/flags/) for global options not listed here. 60 61 ### SEE ALSO 62 63 * [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends. 64