3.7 KiB
3.7 KiB
Open a command Line
The following are the steps open a command line on Linux, Windows or Mac.
These steps were created using ChatGPT, so there might be some errors.
If you run into errors, or if there's any missteps please log an issue here:
https://hub.openingdesign.com/OpeningDesign/Bonsai_Tutorials/issues
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
- Click on Activities (top-left corner) or open the Applications Menu.
- Search for Terminal.
- Click to open it.
Method 3: Right-Click in a Folder
- Open File Manager.
- Navigate to the desired folder.
- Right-click inside the folder.
- 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:
- Press Windows Key (⊞) and type
cmd. - Right-click Command Prompt → Run as administrator.
- Press Windows Key (⊞) and type
Not as Administrator:
-
Run Dialog:
- Press Win + R, type
cmd, press Enter.
- Press Win + R, type
-
In a Folder:
- Navigate to folder in File Explorer.
- Type
cmdin the address bar → press Enter.
2. Git Bash
As Administrator:
- Start Menu:
- Press Windows Key (⊞) and type
Git Bash. - Right-click → Run as administrator.
- Press Windows Key (⊞) and type
Not as Administrator:
- In a Folder:
- Navigate to a folder in File Explorer.
- Right-click inside the folder → select Git Bash Here.
3. PowerShell
As Administrator:
-
Start Menu:
- Press Windows Key (⊞) and type
PowerShell. - Right-click → Run as administrator.
- Press Windows Key (⊞) and type
-
Run Dialog:
- Press Win + R, type
powershell. - Press Ctrl + Shift + Enter.
- Press Win + R, type
Not as Administrator:
-
Start Menu:
- Press Windows Key (⊞) and type
PowerShell. - Click Windows PowerShell.
- Press Windows Key (⊞) and type
-
In a Folder:
- Navigate to folder in File Explorer.
- 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)
- Press Cmd (⌘) + Spacebar to open Spotlight Search.
- Type Terminal and press Enter.
2. Open Terminal from Finder
- Open Finder.
- Navigate to Applications → Utilities.
- Double-click Terminal.
3. Open Terminal Using Launchpad
- Click Launchpad (rocket icon in the Dock).
- Type Terminal in the search bar.
- Click on Terminal to open it.
4. Open Terminal from Dock (if frequently used)
- Open Terminal using any method above.
- Right-click the Terminal icon in the Dock.
- Select Options → Keep in Dock for easy access.
5. Open Terminal in a Specific Folder
- Open Finder and navigate to your desired folder.
- Right-click (or Control + Click) inside the folder.
- Select "New Terminal at Folder".
Now you’re ready to use the command line on your Mac! 🚀