In this article, you can find some of the most used Ubuntu server commands.
If you need help with any of these commands, please post in the comments.
How to list all installed packages on Ubuntu?
If you are using Ubuntu 14.04 or above, you can use this command
apt list --installed
How to unzip a zip file on Ubuntu?
First, install unzip
apt-get install unzip
Then use this command
unzip file.zip -d destination_folder
How to remove a PPA on Ubuntu?
add-apt-repository --remove ppa:PPA_name/ppa
To also remove the applications that were required by this PPA we need to do some more steps.
First install ppa-purge
apt-get install ppa-purge
Then run this command to remove the packages provided by the PPA
ppa-purge ppa:PPA_name/ppa
To remove packages from the official repository use this command
apt-get purge package_name
How to install a .deb file on Ubuntu?
dpkg -i DEB_PACKAG
How to remove a package on Ubuntu?
dpkg -r DEB_PACKAG
How to reconfigure a package on Ubuntu?
dpkg-reconfigure DEB_PACKAG