how to install atom from terminal linux code example

Example 1: install atom ubuntu terminal

Install in terminal

Step 1 : Add repository from official Atom Site
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
Press Enter if it ask your permission.

Step 2 : Update the Ubuntu System
sudo apt-get update
It will take some time. Be patient.

Step 3 : Install Atom Editor
sudo apt-get install atom

Example 2: how to install terminal in atom

Installing terminal package on Atom

Step 1: Click on Edit on the top left of the Atom IDE.
Step 2: Once you clicked edit, you will receive multiple options, click Preferences.(it brings you to settings)
(also step2, you can also press Ctrl and comma simultaneously and it will also bring you to settings)
Step 3: Click on Install and type "platformio-ide-terminal" in the search bar in Install Packages.
Step 4: Once, you have found it, click the install button and be patient.
Step 5: Once it is done, you will see a plus sign at the bottom left of your screen, click it and you will have the terminal for Atom.