Terminal

Goal

  • ๐Ÿ–– Get used to "Terminal".

Install Terminal

Mac

For Mac OS, terminal is already installed.

Windows

Install from here: https://www.microsoft.com/en-us/p/windows-terminal-preview/9n0dx20hk701?activetab=pivot:overviewtab

What is Terminal?

The Mac Terminal is a command line interface (CLI) for Mac OS X available in all OS X versions through Lion. It is also a gateway to Unix, or the underlying operating system of OS X. Terminal allows users to modify various characteristics of their Mac desktops, fonts, files and more beyond the standard OS X graphical user interface (GUI). It allows for total customization and command. However, if novice computer users apply modifications incorrectly, this can harm the system or lead to a loss of data.

https://www.techopedia.com/definition/28747/mac-terminal-mac-os-x

GUI vs CLI

Okay, so let's do the same thing with both GUI and CLI.

GUI

  1. Make test-gui folder inside desktop
  2. Create new file text.txt inside test-gui
  3. Open test-gui folder in VS code

CLI

  1. Make test-cli folder inside desktop
  2. Create new file text.txt inside test-cli
  3. Open test-cli folder in VS code
terminal
cd ~/Desktop
mkdir test-cli
cd test-cli
ni -Path . -Name "text.txt" # not recommend
code .
I don't recommend to create file with Powershell
  • Powershell has complicated encoding system.
  • This will cause a super annoying bug.
  • So, I recommend you to create file inside VS code.