apt list --installed | grep bash?apt list --installed | grep bash on a Debian/Ubuntu system. What will this command output?apt list --installed | grep bashapt list --installed does and how grep filters output.The command apt list --installed lists all installed packages. Piping it to grep bash filters the list to only those packages whose names contain 'bash'. This shows installed bash-related packages with their versions.
apt-get install --dry-run nonexistent-package?apt-get install --dry-run nonexistent-package. What error message or output will you get?apt-get install --dry-run nonexistent-package
The apt-get command with --dry-run simulates installation. If the package does not exist, apt-get reports E: Unable to locate package error.
apt update && apt upgrade -y run as a normal user?apt update && apt upgrade -y as a normal user (not root). The command fails. What is the reason?apt update && apt upgrade -y
Updating package lists and upgrading packages require root privileges because they modify system files. Running as a normal user causes permission denied errors.
apt?The command apt list --upgradable lists all packages with available upgrades. Other options are invalid or do not exist.
apt-get clean on a Debian/Ubuntu system?apt-get clean. What does this command do?apt-get clean removes all downloaded package files (.deb) from the local cache, freeing disk space but not affecting installed packages.