Skip to main content

Linux Command


sudo apt update        # Fetches the list of available updates
sudo apt upgrade # Installs some updates; does not remove packages
sudo apt full-upgrade # Installs updates; may also remove some packages, if needed
sudo apt autoremove # Removes any old packages that are no longer needed

AIO Update

sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get full-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'

Install tar gz

sudo tar xfz rider-*.tar.gz -C /opt/

Remove snap app

sudo snap remove appname

List Snap app

snap list

Update snap

sudo snap refresh appname
snap refresh --list

Check DNS Ubuntu

nmcli dev show | grep DNS

Restart Wifi after changing DNS

sudo systemctl restart NetworkManager