有没有办法在 Google 云存储中预览文件?一种无需下载整个文件即可查看前几行的方法?

Is there a way to preview a file in Google Cloud Storage? A way to see the first few lines without downloading the entire file?

我只想查看 CSV 文件的 headers 列,以便在将其导入 Cloud SQL 之前创建 table。最好在 https://console.cloud.google.com/storage/browser

使用 web-based 存储浏览器

我想我找到了方法。打开 Google Cloud Shell(右上角的图标之一)并使用带有 -r range 选项的 "gsutil cat" 或通过 head.