gsutil commands
List file count in a bucket along with storage used
$ gsutil ls -lR gs://pub | tail -n 1list file count:
gsutil du gs://pub | wc -llist the entire bucket recursively and then produce a total count of all objects, both files and directories, at the end:
gsutil ls -lR gs://pubPreviousCreating storage buckets  |  Cloud Storage  |  Google CloudNextrsync - Synchronize content of two buckets/directories  |  Cloud Storage
Last updated
Was this helpful?
