Linux requires you to know many different commands to get things done faster and more efficiently. So, lets take a look at some of the most useful commands for the most popular tasks. Each Distro has it's own commands, we will focus on the five most popular, Debian, Arch, Fedora, Ubuntu, Manjaro.
DEBIAN
sudo apt update - Updates the list of packages to install or upgrade
sudo apt upgrade - Upgrades the software on the system
sudo apt install - Installs a specific package (I.E. sudo apt install htop)
sudo apt remove - Uninstalls a specific package (I.E. sudo apt remove htop)
ARCH
sudo su pacman -Syu - Updates the list of packages to install or upgrade and upgrades the software on the system
sudo su pacman -S - Installs a specific package (I.E. sudo su pacman -S htop)
sudo su pacman -R - Removes a specific package (I.E. sudo su pacman -R htop)
FEDORA
sudo dnf update - Updates the list of packages to install or upgrade and upgrades the software on the system
sudo dnf install - Installs a specific package (I.E. sudo dnf install htop)
sudo dnf remove - Removes a specific package (I.E. sudo dnf remove htop)
sudo dnf autoremove - removes packages and dependencies that are no longer needed
UBUNTU (And it's derivatives)
sudo apt-get update - Updates the list of packages to install or upgrade
sudo apt-get upgrade - Upgrades the software on the system
sudo apt-get install - Installs a specific package (I.E. sudo apt-get install htop)
sudo apt-get remove - Uninstalls a specific package (I.E. sudo apt-get remove htop)
sudo apt-get check - Checks the dependencies to make sure nothing is broken
sudo update-grub - Updates the bootloader (useful when dual booting Windows/Mac and Linux)
MANJARO
sudo pamac upgrade - Updates the list of packages to install or upgrade and upgrades the software on the system
sudo pamac install - Installs a specific package (I.E. sudo pamac install htop)
sudo pamac remove - Uninstalls a specific package (I.E. sudo pamac remove htop)
UNIVERSAL LINUX COMMANDS
The following commands are not distro specific, and can be used across almost all distributions.
pwd - Displays the current working directory
cd - Changes the current directory
ls - Lists the contents of a directory
mkdir - Creates a new directory
rmdir - Removes an empty directory
rm - Removes files and folders within directories
cp - Copies files or directories
mv - Moves or renames files and directories
touch - Creates and empty file
whereis - Check if a specific package is installed
Clear - Clears the terminal screen