Terminal Recipes: Hands-On Practice
Follow step-by-step recipes to master real terminal workflows
Follow step-by-step recipes to master real terminal workflows
Create a folder, add a file, write content, and read it back.
cd ~/files
Go to your files directory
click to copy
mkdir myproject
Create a project folder
click to copy
cd myproject
Navigate into it
click to copy
touch readme
Create an empty file
click to copy
echo "Hello from my first project!" > readme
Write content to file
click to copy
cat readme
Display file contents
click to copy
ls
List files in the directory
click to copy
Learn that rm can't delete non-empty directories - you must clean them first.
cd ~/files
Go to your files directory
click to copy
mkdir testfolder
Create a directory
click to copy
cd testfolder
Enter the directory
click to copy
touch file1
Create a file
click to copy
touch file2
Create another file
click to copy
ls
See both files
click to copy
cd ..
Go back up
click to copy
rm testfolder
Try to delete - ERROR!
click to copy
cd testfolder
Go back in
click to copy
rm file1
Delete first file
click to copy
rm file2
Delete second file
click to copy
cd ..
Go back up
click to copy
rm testfolder
Now it works!
click to copy
Make a file public, verify with ls -l, then unshare it.
cd ~/files
Go to your files directory
click to copy
touch artwork
Create a file
click to copy
echo "This is my shared creation" > artwork
Add content
click to copy
ls -l
Check permissions (private)
click to copy
chmod a+r artwork
Share publicly
click to copy
ls -l artwork
See "r" in permissions, name is cyan
click to copy
link artwork
Get the public URL (mytekOS command, not standard Linux)
click to copy
chmod a-r artwork
Unshare
click to copy
ls -l artwork
Back to normal
click to copy
Master nested directories, relative paths, and absolute paths.
cd ~/files
Start in files
click to copy
pwd
Shows your current path
click to copy
mkdir devwork
Create a folder
click to copy
cd devwork
Enter it
click to copy
mkdir website
Create nested dir
click to copy
cd website
Go deeper
click to copy
touch index
Create a file
click to copy
pwd
See full nested path
click to copy
cd ..
Go up one level
click to copy
pwd
Now in devwork
click to copy
cd ~
Jump to home
click to copy
cd files/devwork/website
Multi-level path
click to copy
ls
Shows index
click to copy
Discover your network identity and trace internet connections.
whoami
Shows your username
click to copy
hostname
Shows system name
click to copy
myip
Shows your IP address
click to copy
ping google.com
Test connectivity
click to copy
traceroute google.com
Trace internet path
click to copy
ipgeo 8.8.8.8
Geolocate Google DNS
click to copy
You've completed hands-on terminal recipes covering file creation, navigation, permissions, and networking. Keep practicing to build muscle memory!
touch creates files, echo > writes content, cat reads it back.
Directories must be empty before you can remove them.
chmod a+r shares files publicly, a-r makes them private again.
Use cd to navigate, pwd to check location, .. to go up, ~ for home.
whoami, hostname, myip, and ping reveal your network presence.
Put your new knowledge into practice!