Due Date: September 2, 2025
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
Purpose: The Dice Rolling Simulator is a simple Python program that uses randomness to simulate rolling dice on a computer. Its purpose is both practical and educational: it can replace physical dice for games like board games or role-playing games while also helping beginners practice programming concepts such as loops, conditionals, user input, lists, and random number generation. By allowing users to roll different types of dice, choose the number of dice, and view results like totals, highest, and lowest rolls, the program demonstrates how code can model real-world actions in a fun and interactive way.
The function of the Dice Rolling Simulator program is to generate random dice rolls based on user input, simulating the action of rolling physical dice. It allows the user to choose how many dice to roll and how many sides each die should have, then displays the individual results along with useful information such as the total, highest, and lowest values. This makes the program both a practical tool for replacing real dice in games and an educational example for learning how to use randomness, loops, and conditionals in Python.
PX_lastname_PythonLinux.mp4 history command.PX_lastname_PythonLinux.png ✅ Once you’ve completed both tasks, submit them as instructed.
Due Date: September 8, 2025
sudo adduser yourname