The du (disk usage) command is used to estimate file space usage for directories and files. For example, du -sh gives a summary of the total disk usage of the current directory.

0%

Which of the following commands is used to install a package on a system using the YUM package manager?

Correct! Wrong!

The yum install command is used to install a specified package on a system that uses the YUM package manager (typically found on Red Hat-based distributions like CentOS and Fedora).

Which of the following commands is used to update the package database in an APT-based system (Debian/Ubuntu)?

Correct! Wrong!

The apt-get update command is used to update the package database with the latest information from the repositories. This does not install or upgrade any packages but ensures the system knows about the latest available packages.

Which file in a Linux system contains information about the system’s disk partitions?

Correct! Wrong!

The /etc/fstab file contains information about the system's disk partitions, including mount points, file systems, and options for automatically mounting file systems at boot time.

What does the dpkg command do in a Debian-based system?

Correct! Wrong!

The dpkg command is used to manage .deb packages in Debian-based systems (like Ubuntu). It can install, remove, or query the status of packages.

Which of the following commands is used to check disk usage in Linux?

Correct! Wrong!

The du (disk usage) command is used to estimate file space usage for directories and files. For example, du -sh gives a summary of the total disk usage of the current directory.

Premium Tests $49/mo
FREE January-2025