Google 云平台-wget后查看下载的文件

Google Cloud Platform - Viewing downloaded files after wget

我正在完成此 tutorial 并在您下载教程代码的部分。我们发送给 Github 的请求是:

wget https://github.com/GoogleCloudPlatform/cloudml-samples/archive/master.zip

我知道这会将存档下载到 GCP,我可以在云端看到文件 shell,但是有没有办法通过 Google 控制台 GUI 查看文件?我想浏览我下载的文件以更好地了解它们的结构。

点击铅笔图标 右上角云Shell代码编辑器会弹出。

引用文档:

"The built-in code editor is based on Orion. You can use the code editor to browse file directories as well as view and edit files, with continued access to the Cloud Shell. The code editor is available by default with every Cloud Shell instance."

您可以在此处找到更多信息:https://cloud.google.com/shell/docs/features#code_editor

如果您更喜欢使用命令行查看文件,您可以安装 运行 tree Unix CLI 命令 1 和 运行 它在云端 Shell以树状格式列出目录内容。

  • 安装树 => $ sudo apt-get install tree
  • 运行 => $ tree ./ -h --filelimit 4

-h 将显示 files/directories

的人类可读大小

并且您可以使用 --filelimit 设置列表中下降目录的最大数量。

使用 $ man tree 查看命令的可用参数,或在此处查看 man 在线文档:https://linux.die.net/man/1/tree