
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
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
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one