[Mar 13, 2024] Reliable 101-500 Exam Tips Test Pdf Exam Material [Q65-Q85]

Share

[Mar 13, 2024] Reliable 101-500 Exam Tips Test Pdf Exam Material

New 2024 101-500 Test Tutorial (Updated 246 Questions)

NEW QUESTION # 65
Creating a hard link to an ordinary file returns an error. What could be the reason for this?

  • A. The source file is already a hard link.
  • B. The source file is a shell script.
  • C. The source file is hidden.
  • D. The source file is read-only.
  • E. The source and the target are on different filesystems.

Answer: E


NEW QUESTION # 66
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
apt-get search /etc/debian_version

  • A. apt -r /etc/debian_version
  • B.
  • C. dpkg -S /etc/debian_version
  • D. apt-file /etc/debian_version
  • E. find /etc/debian_version -dpkg

Answer: D


NEW QUESTION # 67
Which of the following files, located in the user home directory, is used to store the Bash history?

  • A. .bashrc_history
  • B. .history_bash
  • C. .bash_histfile
  • D. .history
  • E. .bash_history

Answer: E


NEW QUESTION # 68
Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

  • A. Linux kernel version
  • B. The system's hostname
  • C. Boot device order
  • D. Hardware configuration
  • E. Timezone

Answer: C,D


NEW QUESTION # 69
How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?

  • A. rpm -qv apache-xml.rpm
  • B. rpm -qpl apache-xml.rpm
  • C. rpm -qp apache-xml.rpm
  • D. rpm -ql apache-xml.rpm

Answer: B

Explanation:
Explanation
The command rpm -qpl apache-ql.rpm is used to preview the list of files that would be installed by the RPM package file apache-xml.rpm. This command queries the package file without installing it and lists the contents of the package. Here's what each part of the command means:
* rpm is the command-line tool used for managing RPM packages on Linux systems.
* -qpl are options for the rpm command.
* q stands for query mode
* l stands for list the contents of the package.
* p specifies that the package being queried is not installed, but is a file located on the system.
* apache-xml.rpm is the name of the RPM package file you want to query.
So, when you run this command, it will display a list of all the files that are included in the apache-xml.rpm package file, without installing it. This can be useful for checking what files are included in the package before installing it or comparing it with another version of the package.
The other commands are either invalid or do not perform the same function as the correct answer. For example:
* rpm -qp apache-xml.rpm will only display the name and version of the package, not the list of files.
* rpm -qv apache-xml.rpm will display the verbose information about the package, such as the description, license, and changelog, but not the list of files.
* rpm -ql apache-xml.rpm will list the files that are installed on the system by the apache-xml.rpm package, but only if the package is already installed. If the package is not installed, it will return an error.
References:
* 4 ways to list files within a rpm package in Linux
* How to list all files installed by RPM package
* How to List Files Installed From an RPM Package in CentOS?
* How to list all files contained in an RPM package


NEW QUESTION # 70
Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

  • A. info
  • B. lspci
  • C. arch
  • D. sysinfo
  • E. uname

Answer: E


NEW QUESTION # 71
Which of the following commands is used to update the list of available packages when using dpkg based package management?

  • A. apt-cache update
  • B. apt-get refresh
  • C. apt-cache upgrade
  • D. apt-get update
  • E. apt-get upgrade

Answer: D

Explanation:
Explanation
The command that is used to update the list of available packages when using dpkg based package management is apt-get update12. The apt-get command is a high-level tool that works with dpkg and provides a user-friendly interface for managing packages3. The apt-get update command is used to synchronize the package index files from the sources specified in the /etc/apt/sources.list file12. This command does not install or upgrade any packages, but only downloads the information about the latest versions and dependencies of the packages12. The apt-get update command is usually run before the apt-get upgrade or apt-get install commands, which are used to upgrade or install packages respectively12.
The other options in the question are not correct because:
* B. apt-get upgrade: This command is used to upgrade the installed packages to the latest versions, not to update the list of available packages12.
* C. apt-cache update: There is no such command in Linux. The apt-cache command is used to query and display information about the packages, not to update them4.
* D. apt-get refresh: There is no such command in Linux. The closest command is apt-get update, which is the correct answer.
* E. apt-cache upgrade: There is no such command in Linux. The closest command is apt-get upgrade, which is not the correct answer.
References:
1: How To Manage Packages Using apt-get, apt-cache, apt-file and dpkg Commands In Debian Based Systems 2: Ubuntu Manpage: apt-get - APT package handling utility - command-line interface 3: dpkg - Debian Wiki 4: Ubuntu Manpage: apt-cache - query the APT cache


NEW QUESTION # 72
Which of the following is true for hard linked files? (Choose three.)

  • A. The hard linked files share the same inode.
  • B. The hard linked files have the same permissions and owner.
  • C. The hard linked files must be on the same filesystem.
  • D. The hard linked files are indicated by a -> when listed withls -1.
  • E. The output ofstatwill reporthardinstead ofregular file.

Answer: A,B,C


NEW QUESTION # 73
Which of the following commands is used to change options and positional parameters within a running Bash shell?

  • A. set
  • B. envsetup
  • C. history
  • D. bashconf
  • E. setsh

Answer: A


NEW QUESTION # 74
Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)

Answer:

Explanation:
/etc/inittab
Explanation
The /etc/inittab file is a plain text file that contains information about the initialization process of the system. It defines the default run level, the available run levels, and the actions to be taken when entering or leaving a run level. The default run level is the mode of operation that the system starts up into, and it determines which services and processes are running. The default run level is specified by a line similar to the following in the
/etc/inittab file:
id:5:initdefault:
The number after the first colon indicates the default run level, which can range from 0 to 6. The meaning of each run level is:
* 0 - Halt
* 1 - Single-user text mode
* 2 - Not used (user-definable)
* 3 - Full multi-user text mode
* 4 - Not used (user-definable)
* 5 - Full multi-user graphical mode (with an X-based login screen)
* 6 - Reboot
To change the default run level, edit the /etc/inittab file as root and change the number to the desired run level.
For example, to change the default run level to 3, use the following command:
sudo nano /etc/inittab
And change the line to:
id:3:initdefault:
Then save and exit the file. The changes will take effect on the next reboot.
References:
* SysV Init Runlevels - Red Hat Customer Portal
* F.4. SysV Init Runlevels - Red Hat Customer Portal
* init - How can I see or change default run level? - Ask Ubuntu


NEW QUESTION # 75
Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?

  • A. 0640
  • B. 0038
  • C. 0017
  • D. 0027

Answer: D


NEW QUESTION # 76
When removing a package, which of the following dpkg options will completely remove the files including configuration files?

  • A. --clean
  • B. --purge
  • C. -remove
  • D. --delete

Answer: B

Explanation:
Explanation
When removing a package on a system using dpkg package management, the --purge option ensures that configuration files are removed as well. The --purge option is equivalent to the --remove option followed by the --purge-config-files option, which removes any configuration files that are marked as obsolete. The
--remove option only removes the package files, but leaves the configuration files intact. The --clean option removes any .deb files from the local cache, but does not affect the installed packages. The --delete option is not a valid option for dpkg. References:
* 1, 102.4 Lesson 1
* 3, 101-500 Exam - Free Questions and Answers - ITExams.com
* man dpkg


NEW QUESTION # 77
Which command is used to create and initialize the files used to store quota information?
(Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
quotacheck


NEW QUESTION # 78
Which daemon handles power management events on a Linux system?

  • A. inetd
  • B. psd
  • C. pwrmgntd
  • D. batteryd
  • E. acpid

Answer: E

Explanation:
Explanation
The daemon that handles power management events on a Linux system is acpid. A daemon is a background process that runs continuously and performs certain tasks without user intervention. The acpid daemon listens for power management related events, such as switching between AC and battery power on a laptop, pressing the power button, closing the lid, etc., and executes various commands in response. The acpid daemon can be configured by editing the files in /etc/acpi/events and /etc/acpi/actions directories, or by using a graphical tool like gnome-power-manager or xfce4-power-manager. The acpid daemon is part of the 101.1 Determine and configure hardware settings topic of the LPI Linux Essentials certification program12. References:
* Linux Essentials - Linux Professional Institute Certification Programs1
* Exam 101 Objectives - Linux Professional Institute2
* Power management - ArchWiki2
* 9.12. Power Management: Advanced Configuration and Power Interface (ACPI)


NEW QUESTION # 79
From a Bash shell, which of the following commands directly executes the instruction from the file
/usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

  • A. run /usr/local/bin/runme.sh
  • B. source /usr/local/bin/runme.sh
  • C. /usr/local/bin/runme.sh
  • D. . /usr/local/bin/runme.sh
  • E. /bin/bash /usr/local/bin/runme.sh

Answer: B,D

Explanation:
Explanation
The commands that directly execute the instruction from the file /usr/local/bin/runme.sh without starting a subshell are source /usr/local/bin/runme.sh and . /usr/local/bin/runme.sh. These commands use the source or dot builtins, which read and execute commands from the given file in the current shell environment. This means that any changes made by the file, such as setting variables, defining functions, or changing directories, will affect the current shell. This is different from running the file as a script, which will create a new shell process and execute the commands in a separate environment. The source or dot commands are useful for loading configuration files, such as ~/.bashrc or /etc/profile, or for running scripts that modify the current state of the shell.
The other commands are incorrect for the following reasons:
* C. /bin/bash /usr/local/bin/runme.sh: This command will run the file as a script using the /bin/bash interpreter. This will create a new shell process and execute the commands in a separate environment.
Any changes made by the file will not affect the current shell.
* D. /usr/local/bin/runme.sh: This command will also run the file as a script, but using the interpreter specified by the shebang line (#!) at the beginning of the file. If the file does not have a shebang line, it will use the default shell interpreter, which may or may not be /bin/bash. This will also create a new shell process and execute the commands in a separate environment. Any changes made by the file will not affect the current shell.
* E. run /usr/local/bin/runme.sh: This command is not valid, as there is no builtin or external command called run. This will produce an error message.
References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.1: Work on the command line, Weight: 4, Key Knowledge Areas: Use of source and ..
* [Bash Reference Manual], Section 4.2: Bash Builtin Commands, Subsection 4.2.5: Bourne Shell Builtins.


NEW QUESTION # 80
The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint continue to run even when the user running the program logs out?

  • A. wait dbmaint
  • B. nohup dbmaint &
  • C. dbmaint &>/dev/pts/null
  • D. job -b dmaint
  • E. bg dbmaint

Answer: E


NEW QUESTION # 81
Which program updates the database that is used by the locate command?

Answer:

Explanation:
updatedb


NEW QUESTION # 82
Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)

  • A. /var/lib64/
  • B. /opt/lib64/
  • C. ~/.lib64/
  • D. /usr/lib64/
  • E. /lib64/

Answer: D,E


NEW QUESTION # 83
Which file should be edited to select the network locations from which Debian installation package files are loaded?

  • A. /etc/apt/apt.conf.d
  • B. /etc/dpkg/dpkg.cfg
  • C. /etc/dpkg/dselect.cfg
  • D. /etc/apt/sources.list
  • E. /etc/apt/apt.conf

Answer: D


NEW QUESTION # 84
Which of the following are filesystems which can be used on Linux root partitions? (Choose two.)

  • A. VFAT
  • B. ext3
  • C. swap
  • D. XFS
  • E. NTFS

Answer: B,C


NEW QUESTION # 85
......

101-500 Cert Guide PDF 100% Cover Real Exam Questions: https://passleader.realexamfree.com/101-500-real-exam-dumps.html