Get storage and number of object in folder (of same level) in GCS bucket

Is there any command in gcs gsutil which is similar to the output of aws s3 ls -la --human-readable s3://.. ?

Hi @RC1 .

Below is the command which u can use it in cloud shell, where u can get similar output as expected, along with files and file count and utilization size of bucket in human readable format.

gsutil ls gs://bucketname && gsutil ls gs://bucketname | wc -l && gsutil du -sh gs://bucketname

Let me know if it helps !!!

1 Like