Copy and paste the code to see how it works
You can check the behavior of the commands by copying and pasting the code from the article into your terminal (Ubuntu), terminal (macOS), or prompt (Windows).
Each article contains a command, so please click on the line containing the string and icon to copy it.
Paste the file into your operating system environment using Ctrl+V or Cmd+V, or right-click, select Paste, and press Enter.
The execution results are shown in the following format:
Output results
hello running-terminal-commands!
How to open a terminal or prompt
Terminal(ubuntu)
You can see the setup process in the video below. Click on Activities in the upper left corner of the screen to display a search field. Type “terminal” and your device will appear as a search result, allowing you to launch it.
Terminal(masoc)
You can see how to launch it in the video below.
Launch Spotlight by clicking the magnifying glass icon in the menu bar or pressing Command+Space on your keyboard, then type “terminal” in the search field. Terminal will appear as a suggestion and you can launch it.
Package Manager
Each article mentions required commands, so please refer to the following article to install the package manager MacPorts.
Also, please refer to the following article to set up aliases so that they do not conflict with the systems and commands you normally use.
Prompt(windows)
You can see how to launch WSL and MSYS2 in the video below.
Search for WSL (※1) or MSYS2 MINGW64 (※2) in the search bar on the taskbar. They will appear as candidates and you can launch them.
WSL
MSYS2
※1. WSL must be installed. You can see the installation procedure in the video in the article below.
※2. MSYS2 MINGW64 must be installed. You can see the installation procedure in the video in the article below.
Example
I’ve written the above command again, so please run it and check.
Output results
hello running-terminal-commands!
Recommended usage
Basically, no matter which article you’re viewing, you can run the commands one line at a time from the top.
If you’re new to this, we recommend selecting the “no-install” category from the menu or sidebar displayed by clicking the command list button, or from the drop-down menu at the bottom of the page, and then viewing the articles displayed.
There are no required commands, so you can run them if you can open a terminal, terminal, or prompt using the method above.
If you liked this, please check out our other command articles.