
准备工作
- 实验会创建一个 Google Cloud 项目和一些资源,供您使用限定的一段时间
- 实验有时间限制,并且没有暂停功能。如果您中途结束实验,则必须重新开始。
- 在屏幕左上角,点击开始实验即可开始
Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.
When you are connected, you are already authenticated, and the project is set to your PROJECT_ID. The output contains a line that declares the PROJECT_ID for this session:
gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
Click Authorize.
Your output should now look like this:
Output:
Output:
Example output:
gcloud
, in Google Cloud, refer to the gcloud CLI overview guide.
This lab provides a hands-on introduction to fundamental Linux shell commands. You'll learn how to navigate the filesystem, manipulate files, and understand basic shell operations, equipping you with essential skills for interacting with Linux environments. Prior knowledge of Linux shell commands is expected.
In this task, you'll learn to move around the Linux filesystem using essential commands.
pwd
command to print the current working directory.cd
command. First, navigate to the home directory.my_project
within your home directory.my_project
directory.cd ..
to go back to the parent directory (your home directory).This task covers basic file creation, copying, moving, and deletion operations.
hello.txt
using the touch
command.hello.txt
using the echo
command and redirection.hello.txt
using the cat
command.hello.txt
to goodbye.txt
using the cp
command.goodbye.txt
to my_project
directory.hello.txt
file using the rm
command.This task focuses on listing directory contents and removing directories.
ls
command.my_project
directory, including hidden files, using ls -la
. First navigate to home directory.my_project
directory and its contents using the rm -r
command. First navigate to home directory.my_project
directory has been removed. First navigate to home directory.This task introduces command chaining and output redirection.
&&
.ls -l
command to a file named listing.txt
.pwd
command to listing.txt
using >>
.listing.txt
to confirm the appended output.You have successfully navigated the Linux filesystem, manipulated files, worked with directories, and performed basic shell operations. These skills are fundamental for any Linux user and provide a solid foundation for more advanced command-line tasks. Explore the manual pages for each command (man [command]
) to discover more options and functionalities.
Manual Last Updated Jul 16, 2025
Lab Last Tested Jul 16, 2025
此内容目前不可用
一旦可用,我们会通过电子邮件告知您
太好了!
一旦可用,我们会通过电子邮件告知您
一次一个实验
确认结束所有现有实验并开始此实验