Due Date: August 21, 2025
Once logged in, locate and open the Terminal (command box).
python3 --version
If you see something like Python 3.10.x, Python is ready. If not, contact your instructor.
python3
This opens the Python shell. Try typing:
print("Hello from Cyber Range!")
Exit with exit() or press Ctrl + D.
Create a file called hello.py using the built-in editor:
nano hello.py
Type your code:
print("Hello, World from Cyber Range!")
Save with Ctrl+O → Enter, exit with Ctrl+X, then run:
python3 hello.py
Add this line to the top of your file:
#!/usr/bin/env python3
Then run:
chmod +x hello.py
./hello.py
Ctrl + Shift + Alt. The command box in Linux is called the Terminal.
ls – List Files and DirectoriesDisplays the contents of the current (or specified) directory.
ls -l → long listing (permissions, size, date)ls -a → show hidden filesls -lh → human-readable file sizescd – Change DirectoryMoves you to a different directory.
cd Documentscd .. → go up one directorycd / → go to root directorycd ~ → go to home directorypwd – Print Working DirectoryShows the full path of the directory you are in.
/home/username/Documents
cat – Concatenate and Display FilesDisplays the contents of a file.
cat file.txtcat file1.txt file2.txt > combined.txt → combine filescat -n file.txt → show line numbersnano – Text EditorOpens a simple editor inside the terminal to create or edit files.
nano file.txthistoryDisplays a list of previously entered commands with line numbers.
Once logged in, locate and open the Terminal (command box).
python3 --version
If you see something like Python 3.10.x, Python is ready. If not, contact your instructor.
python3
This opens the Python shell. Try typing:
print("Hello from Cyber Range!")
Exit with exit() or press Ctrl + D.
Create a file called hello.py using the built-in editor:
nano hello.py
Type your code:
print("Hello, World from Cyber Range!")
Save with Ctrl+O → Enter, exit with Ctrl+X, then run:
python3 hello.py
Add this line to the top of your file:
#!/usr/bin/env python3
Then run:
chmod +x hello.py
./hello.py
ls -l ls -a ls -lh cd .. cd / cd ~ nano PX_lastname_Heading.txt cat PX_lastname_Heading.txt history
Note: In the nano step, create a file named PX_lastname_Heading.txt and paste in your standard heading. Replace lastname with your actual last name.
PX_lastname_basicLinux.mp4 history command.PX_lastname_basicLinux.png ✅ Once you’ve completed both tasks, submit them as instructed.