
始める前に
- ラボでは、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
このコンテンツは現在ご利用いただけません
利用可能になりましたら、メールでお知らせいたします
ありがとうございます。
利用可能になりましたら、メールでご連絡いたします
1 回に 1 つのラボ
既存のラボをすべて終了して、このラボを開始することを確認してください