how to update chrome in ubuntu code example

Example 1: update google chrome command ubuntu

sudo apt-get --only-upgrade install google-chrome-stable

Example 2: check chrome version ubuntu via terminal

google-chrome --version

Example 3: install chrome ubuntu automatic update

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

sudo apt update 
sudo apt install google-chrome-stable