LogoLogo
  • How to use Google cloud
  • Buckets
    • Creating storage buckets  |  Cloud Storage  |  Google Cloud
    • gsutil commands
    • rsync - Synchronize content of two buckets/directories  |  Cloud Storage
  • Mapping bucket to the local instance on google cloud
Powered by GitBook
On this page

Was this helpful?

  1. Buckets

gsutil commands

List file count in a bucket along with storage used

$ gsutil ls -lR gs://pub | tail -n 1

list file count:

gsutil du gs://pub | wc -l

list the entire bucket recursively and then produce a total count of all objects, both files and directories, at the end:

gsutil ls -lR gs://pub

PreviousCreating storage buckets  |  Cloud Storage  |  Google CloudNextrsync - Synchronize content of two buckets/directories  |  Cloud Storage

Last updated 5 years ago

Was this helpful?