# Initialize a new project with its own environment
uv init my_project
cd my_project
# Add dependencies (creates/updates pyproject.toml)
uv add rich pandas
# When joining an existing project: install from lock file
uv sync
# Run code (automatically uses the project's venv)
uv run main.pyMain terminal commands
When you first open Terminal, you typically are placed in your home directory.
Main commands:
| Description | bash/macOS | Command Prompt (Windows) |
|---|---|---|
| Check your current directory (print working directory) |
pwd
|
cd
|
| List the files in the current directory |
ls
|
dir
|
| Move into and out of the directory (change directory) |
cd <directory>
|
cd <directory>
|
| Create a directory (make directory) |
mkdir data
|
mkdir data
|
Tips and additional commands:
Check the tips and experiment with additional commands in the self-study part (relevant for the exam).