130 lines
3.2 KiB
Markdown
130 lines
3.2 KiB
Markdown
# 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 Command Prompt or Git Bash on Windows**
|
||
|
||
#### **1. Open Command Prompt (cmd.exe)**
|
||
|
||
##### **Method 1: Using the Start Menu**
|
||
|
||
1. Press **Windows Key** (⊞) and type **cmd** or **Command Prompt**.
|
||
2. Click on **Command Prompt** from the search results.
|
||
|
||
##### **Method 2: Using Run Dialog**
|
||
|
||
1. Press **Win + R** to open the Run dialog.
|
||
2. Type `cmd` and press **Enter**.
|
||
|
||
##### **Method 3: Open Command Prompt in a Specific Folder**
|
||
|
||
1. Navigate to the desired folder in **File Explorer**.
|
||
2. In the address bar, type `cmd` and press **Enter**.
|
||
- This will open the command prompt in that folder’s location.
|
||
|
||
----------
|
||
|
||
#### **2. Open Git Bash**
|
||
|
||
##### **Method 1: Using the Start Menu**
|
||
|
||
1. Press **Windows Key** (⊞) and type **Git Bash**.
|
||
2. Click **Git Bash** from the search results.
|
||
|
||
##### **Method 2: Using Right-Click in a Folder**
|
||
|
||
1. Navigate to a folder in **File Explorer**.
|
||
2. **Right-click** inside the folder.
|
||
3. Select **Git Bash Here** to open Git Bash in that directory.
|
||
|
||
----------
|
||
|
||
Now you can run commands in either **Command Prompt** or **Git Bash**! 🚀
|
||
|
||
|
||
# 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 you’re ready to use the command line on your Mac! 🚀
|
||
|