Linux
Why Linux
More computers run a Linux OS's than all other computers combined!
So get use to it!
π₯οΈπ©βπ»π₯οΈπ¨βπ»π₯οΈ
Some Basic Terminology
terminal, shell, command prompt
Create a User
You should NOT be doing coding as the "root" user on a system.Β Each user should have their own account:
adduser --shell /bin/bash --allow-bad-names -comment "First Last" first.last
you might need to give "sudo" permission to a user, so they can load software
usermod -aG sudo first.last
Sudo
Sudo stands for SuperUser DO and is used to access restricted files and operations. By default, Linux restricts access to certain parts of the system preventing sensitive files from being compromised.Β The sudo command temporarily elevates privileges allowing users to complete sensitive tasks without logging in as the root user :
apt-get update
you will get a (13: Permission denied) error, if you are not a root user
sudo apt-get update
will work
Update and Upgrade
To keep your system up to date :
sudo apt-get update && sudo apt-get full-upgrade
Shutdown and Reboot
To manage your servers :
sudo shutdown now
sudo reboot now