/ Home
Ubuntu Commands
Note: notes
Check Ubuntu Version
lsb_release -a
You will see like this
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
You will see like this:
--2020-05-18 20:03:35-- https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.131.3, 104.16.130.3, 2606:4700::6810:8203, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.131.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85055499 (81M) [application/x-sh]
Saving to: ‘Miniconda3-latest-Linux-x86_64.sh’
100%[================================================================================================================================================================>] 85,055,499 90.8MB/s in 0.9s
2020-05-18 20:03:36 (90.8 MB/s) - ‘Miniconda3-latest-Linux-x86_64.sh’ saved [85055499/85055499]
How to run .sh file
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
How to create ssh key for Github?
ssh-keygen -t rsa -b 4096 -C "abc@gmail.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
Where to check Nginx access logs
/var/log/nginx/acces.log
check other logs
/var/log/nginx/
ls to see the latest logs
Basic Linux/Ubuntu Commands
How to check disk space in Linux/Ubuntu