Ubuntu 20.04 - Exercises
Ubuntu Exercises - Files and Directories

Graphical User Interface (GUI)
The GUI is what most people think of when they interact with a computer. It's simple to use because you can interact visually, and you don't need to know any terminal commands.
Open File Viewer

Text Editor
You can open a text file by clicking the applications button and searching "text"

Use Ctrl + S to save files
Ctrl + S to save files
Trash Bin
You can highlight documents and use the Delete key, or right click and "Move to Trash"

Command Line Interface (CLI)
Now let's complete the same exercises using only command line interface through the terminal.
Open the Terminal and File Viewer

Exercise Overview
Create a new directory called
fishing-tipsin HomeCreate a text file
fish.txtin thefishing-tipsdirectoryDelete
fish.txtDelete the
fishing-tipsdirectory
Open a new Terminal with Ctrl + Alt + T
Ctrl + Alt + T Create new directory called fishing-tips
fishing-tips1) Start by running the ls command to see the contents of the Home folder
lsResult

Create fishing-tips directory (make directory):
fishing-tips directory (make directory):mkdir fishing-tipsUse ls to list Home directory contents
ls to list Home directory contentslsResult

Notice how both the CLI and GUI now show fishing-tips as a folder within Home.
Create fish.txt within fishing-tips
fish.txt within fishing-tips1) Double click on the fishing-tips folder in the GUI to enter the directory. It should be empty.
2) Use the cd command to enter the fishing-tips folder in CLI:
cd fishing-tips
Use nano to create fish.txt
nano to create fish.txtThe nano command is used to create and edit files through the terminal
nano fish.txtNano File Editor
1) Type some fishing advice into the file, then use Ctrl + X to Exit
2) Press Y to save changes
3) Press ENTER to save the file as fish.txt

4) Use ls to show contents of fishing-tips
lsResults

Notice how fish.txt now appears in both CLI and GUI
Open fish.txt in the GUI
fish.txt in the GUIIf you double click fish.txt, you'll see the files are identical whether created using text editor or nano

Delete fish.txt
fish.txt1) Use rm to remove the fish.txt file
rm fish.txt2) Use ls to list files within fishing-tips
lsResult

Notice how fish.txt no longer appears in the CLI or GUI windows.
Navigate back to the Home directory
Home directory1) Navigate back to the Home directory in the File Viewer using the GUI
2) Navigate back to Home directory in CLI by entering cd ~ in the terminal:
cd ~3) Use ls to show contents of Home directory
lsResult

Delete fishing-tips folder
fishing-tips folder1) Run rm -r to remove an entire directory and all contents
rm -r fishing-tips2) Run ls to show contents of Home directory
lsResult

Congratulations, you can now create files and directories using the terminal and CLI!
Ethereum Staking - Prater Testnet
Now that you understand the basics of Ubuntu, you can try running a validator on the Prater testnet!
The Ethereum testnets use Goerli ETH which has no value, which means you can test everything out before risking any of your ETH.
You should try everything on testnet before making a mainnet deposit.
Learn how to run a testnet validator: Prater || Lighthouse Eth2 Staking Guide
Last updated
Was this helpful?