Searching...
Flashcards in this deck (54)
  • What is the focus of this week's lecture?

    • Version Control with Git
    • Installing Anaconda and managing Jupyter environments
    • Jupyter Notebooks for AI Development
    • Using Google Colab
    • Setting up WSL and installing Debian
    • Linux for AI & Embedded Systems
    lecture overview
  • What are the essential Git commands for version control?

    • Configure Git
    • Initialize a repository
    • Add files and commit
    • Create a new branch
    • Merge branches
    • Push to origin
    git version_control
  • How do you configure Git?

    • <code>git config --global user.name "Your Name"</code>
    • <code>git config --global user.email "[email protected]"</code>
    git configuration
  • What command initializes a Git repository?

    <code>git init</code>

    git repository
  • What commands are used to add files and commit in Git?

    • <code>git add .</code>
    • <code>git commit -m "Initial commit"</code>
    git commit
  • How do you create a new branch in Git?

    • <code>git branch feature-branch</code>
    • <code>git checkout feature-branch</code>
    git branching
  • What commands are used to merge branches in Git?

    • <code>git checkout main</code>
    • <code>git merge feature-branch</code>
    git merging
  • What command pushes changes to the origin in Git?

    <code>git push origin main</code>

    git push
  • What is Google Colab used for?

    An alternative cloud-based Jupyter environment.

    jupyter cloud
  • What is the purpose of Jupyter Notebooks in AI development?

    Writing and running AI code interactively.

    jupyter ai
  • What is the Windows Subsystem for Linux (WSL) used for?

    Setting up a Linux environment on Windows.

    linux wsl
  • What are some essential Linux commands for AI?

    Basic shell commands, shell scripting, and process management.

    linux commands
  • What causes merge conflicts in Git?

    When two branches modify the same part of a file.

    git merge conflicts
  • How do you resolve a merge conflict?

    1. Open the conflicted file and manually edit the changes.
    2. Use <code>git add <file></code> to mark the file as resolved.
    3. Commit the changes with <code>git commit -m "Resolved merge conflict"</code>.
    git merge conflicts
  • What is WSL?

    Windows Subsystem for Linux allows users to run a Linux environment directly on Windows.

    windows linux wsl
  • How to enable WSL on Windows?

    1. Open PowerShell as Administrator.
    2. Run <code>wsl --install</code>.
    3. Restart your computer.
    windows wsl installation
  • What command to manually enable WSL?

    <code>dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart</code>

    windows wsl command
  • How to install Debian from Microsoft Store?

    1. Open Microsoft Store.
    2. Search for 'Debian WSL'.
    3. Click 'Install'.
    debian wsl installation
  • How to launch Debian after installation?

    From the Start Menu or by running <code>wsl</code> in PowerShell.

    debian wsl launch
  • What command updates package lists in WSL?

    <code>sudo apt update</code>

    wsl command update
  • What command installs basic utilities in WSL?

    <code>sudo apt install -y build-essential git curl</code>

    wsl command installation
  • How to check the installed Linux version?

    Run <code>lsb_release -a</code>.

    wsl command version
  • What is the command to print the working directory?

    <code>pwd</code>

    linux commands
  • How do you list files and directories?

    <code>ls</code> or <code>ls -l</code>

    linux commands
  • What command is used to create a new directory?

    <code>mkdir <directory_name></code>

    linux commands
  • How do you change directory?

    <code>cd <directory_name></code>

    linux commands
  • What is the command to create an empty file?

    <code>touch <file_name></code>

    linux commands
  • How can you copy a file?

    <code>cp <source_file> <destination_file></code>

    linux commands
  • What command is used to move or rename a file?

    <code>mv <source_file> <destination_location></code>

    linux commands
  • How do you remove a file?

    <code>rm <file_name></code>

    linux commands
  • What command opens a text editor?

    <code>nano <file_name></code>

    linux commands
  • How do you display the contents of a file?

    <code>cat <file_name></code>

    linux commands
  • What command lists running processes?

    <code>ps aux</code>

    linux processes
  • How do you kill a process?

    <code>kill -9 <PID></code>

    linux processes
  • What command is used to monitor system usage?

    <code>top</code>

    linux processes
  • How can you check disk space?

    <code>df -h</code>

    linux disk
  • What command checks memory usage?

    <code>free -m</code>

    linux memory
  • How do you show network configuration?

    <code>ifconfig</code>

    linux networking
  • What command tests network connectivity?

    <code>ping <domain></code>

    linux networking
  • How do you make a script executable?

    <code>chmod +x <script.sh></code>

    linux scripting
  • What command is used to execute a script?

    <code>./<script.sh></code>

    linux scripting
  • What is the shebang line for a bash script?

    <code>#!/bin/bash</code>

    linux scripting
  • How do you print a message in a bash script?

    <code>echo 'Hello, World!'</code>

    linux scripting
  • What is the syntax for a for loop in bash?

    <code>for i in {1..5}; do ... done</code>

    linux scripting
  • How do you check if a file exists in bash?

    <code>if [ -f 'file.txt' ]; then ... fi</code>

    linux scripting
  • What is the purpose of Jupyter notebooks?

    Interactive environment for AI and machine learning development.

    ai development
  • What is Anaconda used for?

    Python distribution for AI development, includes Jupyter and libraries.

    ai anaconda
  • What is the first step to install Anaconda on Windows?

    Download the Anaconda installer from <a href="https://www.anaconda.com/">anaconda.com</a>.

    installation anaconda
  • What should you choose during Anaconda installation?

    Choose 'Add Anaconda to PATH'.

    installation anaconda
  • How do you open the Anaconda Prompt?

    From the Start Menu.

    anaconda usage
  • What is Google Colab?

    A free cloud-based Jupyter Notebook environment with GPU support.

    ai google_colab
  • How do you start using Google Colab?

    Navigate to <a href="https://colab.research.google.com/">colab.research.google.com</a>.

    google_colab usage
  • What do you need to do to create a new notebook in Google Colab?

    Sign in with a Google account and click 'New Notebook'.

    google_colab usage
  • What feature does Google Colab support?

    GPU acceleration for running Python code interactively.

    google_colab features