Tab - completion sudo - root access su - super user exit - exit terminal ls - list file and dir more - list output which scroll with enter cd - change dir mkdir - make dir rm -Rf - delete dir and files mv source destination - move dir cp source destination - copy dir ./ - execute commands chmod +x - change permissions chown user:group - change ownership --help - shows help man command - shows manual history - shows history !lastcommand - rerun last command after ! echo VARIABLE - Example: echo $SHELL passwd name - reset password systemctl status/enable/start/stop/restart servicename - systemd only grep - filter search df -h - show drive system usage ssh user@server ip addr OR ifconfig - Check your IP Address curl ifconfig.me - Check external IP Address top and htop - see processes find ~ -iname file_name*
DJANGO-PYTHON:
python3 -m venv my-project-env
source my-project-env/bin/activate django-admin startproject pro-name - create new project python manage.py startapp app-name - create new app python manage.py createsuperuser - create super user python manage.py runserver - run on localhost python manage.py makemigration python manage.py migrate pip install gunicorn pip install django-heroku pip freeze > requirements.txt heroku login heroku create app-name heroku addons:create heroku-postgresql:hobby-dev heroku run python manage.py migrate git add . git commit -m "Ready to heroku this sucker in the face." git push heroku master
REACTJS:
npx create-react-app app-name - create new project
npm start - run project on local host npm i package-name - install package npm i firebase firebase init - initialize firebase for the project npm run build - build the project for production firebase deploy - to deploy app