Forrest logo
back to the gsutil tool

gsutil:tldr:9d5a6

gsutil: List all buckets in a project you are logged into.
$ gsutil ls
try on your machine

The "gsutil ls" command is used to list the files and directories in a Google Cloud Storage (GCS) bucket or a specific GCS prefix (directory) within a bucket.

When you run the "gsutil ls" command, it will display a list of all the files and directories in the specified GCS location. It will show the full path of each file or directory, along with additional information such as the file size and last modification time.

For example, if you run "gsutil ls gs://my-bucket", it will list all the files and directories in the "my-bucket" GCS bucket.

Note that "gsutil ls" command is part of the Google Cloud SDK and requires authentication with appropriate permissions to access the GCS bucket or prefix you are trying to list.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gsutil tool