Question:
You work as a Network Administrator for ABC Inc. The company is a Linux-based network. You want to know the ownership of the /etc/inittab file.
Which of the following commands will you use to accomplish the task?
A. rpm -i /etc/inittab
B. rpm -qa /etc/inittab
C. rpm -e /etc/inittab
D. rpm -qf /etc/inittab
Explanation:
The RPM (Red Hat Package Manager)is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating computer software packages.
Each software package consist of an archive of files along with information about the package like its version, a description etc. There is also a library API, permitting advanced developers to manage such transactions from programming languages such as C or Python.
RPM is a core component of many Linux Distributions such RedHat, Fedora, SUSE Linux Enterprise, openSUSE, CentOS, Meego, Magei etc.
rpm -i command installs a package.
rpm -qa command provides the version and build number of each installed package in a linux server.
rpm -e command removes an installed package.
Answer: D
You work as a Network Administrator for ABC Inc. The company is a Linux-based network. You want to know the ownership of the /etc/inittab file.
Which of the following commands will you use to accomplish the task?
A. rpm -i /etc/inittab
B. rpm -qa /etc/inittab
C. rpm -e /etc/inittab
D. rpm -qf /etc/inittab
Explanation:
The RPM (Red Hat Package Manager)is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating computer software packages.
Each software package consist of an archive of files along with information about the package like its version, a description etc. There is also a library API, permitting advanced developers to manage such transactions from programming languages such as C or Python.
RPM is a core component of many Linux Distributions such RedHat, Fedora, SUSE Linux Enterprise, openSUSE, CentOS, Meego, Magei etc.
rpm -i command installs a package.
rpm -qa command provides the version and build number of each installed package in a linux server.
rpm -e command removes an installed package.
rpm -qf command is used to query for the owner of a particular file.