Bonsai_Tutorials/_Setup/Open Command Prompt or Git Bash.md

167 lines
3.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Open a command Line
The following are the steps open a command line on [Linux](#linux), [Windows](#windows) or [Mac](#mac).
*These steps were created using ChatGPT, so there might be some errors.*
<br>
*If you run into errors, or if there's any missteps please log an issue here:*
<br>
*https://hub.openingdesign.com/OpeningDesign/Bonsai_Tutorials/issues*
<br>
*or create a pull request with the change. Thank you.*
# Linux
### **Opening a Command Prompt (Terminal) on Linux**
----------
### **1. Open the Terminal (Command Prompt Equivalent)**
#### **Method 1: Using a Keyboard Shortcut (Fastest)**
- **Ubuntu, Debian, Fedora, CentOS, Arch, etc.:**
Press **Ctrl + Alt + T**
#### **Method 2: Using the Application Menu**
1. Click on **Activities** (top-left corner) or open the **Applications Menu**.
2. Search for **Terminal**.
3. Click to open it.
#### **Method 3: Right-Click in a Folder**
1. Open **File Manager**.
2. Navigate to the desired folder.
3. **Right-click** inside the folder.
4. Select **"Open Terminal Here"**.
# Windows
## **Opening CMD, Git Bash, and PowerShell**
*You can essentially use any 1 of these 3.*
### **1. Command Prompt (CMD)**
**As Administrator:**
- **Start Menu:**
1. Press **Windows Key** (⊞) and type `cmd`.
2. Right-click **Command Prompt****Run as administrator**.
**Not as Administrator:**
- **Run Dialog:**
1. Press **Win + R**, type `cmd`, press **Enter**.
- **In a Folder:**
1. Navigate to folder in **File Explorer**.
2. Type `cmd` in the address bar → press **Enter**.
----------
### **2. Git Bash**
**As Administrator:**
- **Start Menu:**
1. Press **Windows Key** (⊞) and type `Git Bash`.
2. Right-click → **Run as administrator**.
**Not as Administrator:**
- **In a Folder:**
1. Navigate to a folder in **File Explorer**.
2. Right-click inside the folder → select **Git Bash Here**.
----------
### **3. PowerShell**
**As Administrator:**
- **Start Menu:**
1. Press **Windows Key** (⊞) and type `PowerShell`.
2. Right-click → **Run as administrator**.
- **Run Dialog:**
1. Press **Win + R**, type `powershell`.
2. Press **Ctrl + Shift + Enter**.
**Not as Administrator:**
- **Start Menu:**
1. Press **Windows Key** (⊞) and type `PowerShell`.
2. Click **Windows PowerShell**.
- **In a Folder:**
1. Navigate to folder in **File Explorer**.
2. Shift + Right-Click → **Open PowerShell window here**.
_(or via File → Open Windows PowerShell → Open in Folder)_
----------
# Mac
You can open the **Terminal** on a Mac using several methods:
----------
### **1. Open Terminal Using Spotlight (Fastest)**
1. Press **Cmd (⌘) + Spacebar** to open **Spotlight Search**.
2. Type **Terminal** and press **Enter**.
----------
### **2. Open Terminal from Finder**
1. Open **Finder**.
2. Navigate to **Applications****Utilities**.
3. Double-click **Terminal**.
----------
### **3. Open Terminal Using Launchpad**
1. Click **Launchpad** (rocket icon in the Dock).
2. Type **Terminal** in the search bar.
3. Click on **Terminal** to open it.
----------
### **4. Open Terminal from Dock (if frequently used)**
1. Open **Terminal** using any method above.
2. Right-click the **Terminal** icon in the Dock.
3. Select **Options****Keep in Dock** for easy access.
----------
### **5. Open Terminal in a Specific Folder**
1. Open **Finder** and navigate to your desired folder.
2. Right-click (or **Control + Click**) inside the folder.
3. Select **"New Terminal at Folder"**.
----------
Now youre ready to use the command line on your Mac! 🚀