101-500 Exam Questions Dumps, Selling Lpi Products [Q39-Q56]

Share

101-500 Exam Questions Dumps, Selling Lpi Products

101-500 Cert Guide PDF 100% Cover Real Exam Questions


Lpi 101-500 certification exam is an excellent way for professionals to showcase their expertise in Linux administration. LPIC-1 Exam 101, Part 1 of 2, version 5.0 certification is recognized globally and demonstrates a high level of proficiency in Linux administration. Moreover, the certification provides professionals with a competitive edge in the job market and opens up new career opportunities.

 

NEW QUESTION # 39
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

  • A. mke2fs
  • B. fixe2fs
  • C. mod2fs
  • D. fsck
  • E. tune2fs

Answer: E

Explanation:
Explanation
The utility that can be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem is tune2fs. This command can adjust various parameters of a Linux ext2, ext3, or ext4 filesystem, such as the maximum mount count, the check interval, the reserved blocks percentage, and the default mount options. To change the check interval, the -i option can be used, followed by a time value. For example, to set the check interval to 180 days for the filesystem on /dev/sda1, the following command can be used:
sudo tune2fs -i 180d /dev/sda1
This command will modify the superblock of the filesystem, which contains the metadata and configuration information, without affecting the data stored on the filesystem. The other options are incorrect because they are not suitable for changing the check interval of an ext2 filesystem. Option A is wrong because there is no such utility as mod2fs. Option B is wrong because fsck is a utility for checking and repairing filesystems, not changing their parameters. Option D is wrong because mke2fs is a utility for creating ext2 filesystems, which will erase the existing data on the partition. Option E is wrong because there is no such utility as fixe2fs.
For more information on how to use the tune2fs command, you can refer to the following articles:
* 15 tune2fs command examples in Linux [Cheat Sheet] - GoLinuxCloud
* Linux tune2fs command With Examples - GeeksforGeeks
* tune2fs command-file system management - Linuxstar
* tune2fs Command Examples - Gianforte School of Computing
* tune2fs Command - IBM


NEW QUESTION # 40
What is contained on the EFI System Partition?

  • A. The default swap space file
  • B. The Linux default shell binaries
  • C. The first stage boot loader
  • D. The user home directories
  • E. The Linux root file system

Answer: C

Explanation:
Explanation
The EFI System Partition (ESP) is a special partition on a disk that contains the UEFI boot loaders, applications and drivers for the installed operating systems. The UEFI firmware will load these files from the ESP when the system boots. The ESP is mandatory for UEFI boot and it is usually formatted with a FAT file system. The ESP is part of the 101.1 Determine and configure hardware settings topic of the LPI Linux Essentials certification program12.
The other options are false or irrelevant. The Linux root file system is not contained on the ESP, it is usually on a separate partition with a Linux file system, such as ext4 or btrfs. The default swap space file is not contained on the ESP, it is usually on a swap partition or a swap file on the Linux root file system. The Linux default shell binaries are not contained on the ESP, they are usually on the /bin directory of the Linux root file system. The user home directories are not contained on the ESP, they are usually on the /home directory of the Linux root file system or on a separate partition. References:
* Linux Essentials - Linux Professional Institute Certification Programs1
* Exam 101 Objectives - Linux Professional Institute2
* EFI system partition - ArchWiki3
* /boot/efi Linux partition: What is, usage recommendations


NEW QUESTION # 41
Which of the following commands moves and resumes in the background the last stopped shell job?

  • A. bg
  • B. fg
  • C. back
  • D. run

Answer: A


NEW QUESTION # 42
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

  • A. By specifying the number right in front of a command such as 41or 2yj.
  • B. By specifying the number after a command such as 14or yj2followed by escape.
  • C. By using the command :repeat followed by the number and the command
  • D. By selecting all affected lines using the shit and cursor keys before applying the command.
  • E. By issuing a command such as :set repetition=4 with repeats every subsequent command 4 times.

Answer: A


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

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

Answer: A

Explanation:
Explanation
The command that searches for packages owning the file /etc/debian_version is dpkg -S /etc/debian_version.
The dpkg command is the low-level tool for installing, removing, configuring, and querying Debian packages.
The -S or --search option takes a file name or a pattern as an argument and searches for the packages that contain the matching files. The output shows the package name and the file name separated by a colon. For example, running dpkg -S /etc/debian_version will produce the output base-files:/etc/debian_version, indicating that the file /etc/debian_version belongs to the base-files package. The other commands are either invalid or do not perform the desired task. The apt-get command is used to download and install packages from the Debian repositories, but it does not have a search option. The aptcommand is a high-level tool for managing packages, but it does not have a -r option. The find command is used to search for files in the file system, but it does not have a -dpkg option. The apt-file command is used to search for files in the packages available in the Debian repositories, but it requires a subcommand such as search or show before the file name or pattern. References:
* Linux Essentials - Linux Professional Institute Certification Programs1
* Exam 101 Objectives - Linux Professional Institute2
* dpkg(1) - Linux manual page3
* apt-get(8) - Linux manual page
* apt(8) - Linux manual page
* find(1) - Linux manual page
* apt-file(1) - Linux manual page


NEW QUESTION # 44
In which directory must definition files be placed to add additional repositories to yum?

  • A. * /etc/yum.repos.d
  • B. * yum.repos.d
  • C. * /etc/yum.repos.d/
  • D. * yum.repos.d/

Answer: C

Explanation:
Explanation
The /etc/yum.repos.d/ directory contains configuration files for additional yum repositories. Each file in this directory should end with .repo and contain information about one or more repositories. The yum command will read all the files in this directory and use them as sources for software packages. The format of the .repo files is similar to the /etc/yum.conf file, which contains the main configuration options for yum. Each .repo file can have one or more sections, each starting with [repository] where repository is a unique identifier for the repository. The section can have various options, such as name, baseurl, enabled, gpgcheck, etc. For example, a .repo file for the EPEL repository could look like this:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 References:
* 2, 102.5 Use RPM and YUM package management
* 4, 101-500 Exam - Free Questions and Answers - ITExams.com
* man yum.conf


NEW QUESTION # 45
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

  • A. When using udev, it is not possible to create block orcharacter devices in /dev/ using mknod.
  • B. Entries for all possible devices get created on boot even if those devices are not connected.
  • C. Additional rules for udev can be created by adding them to /etc/udev/rules.d/.
  • D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
  • E. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

Answer: C,D

Explanation:
Explanation
udev is a device manager that dynamically creates and removes device nodes in the /dev/ directory. It also handles device events, such as adding, removing, or changing the attributes of devices. udev uses rules to match devices and assign properties, permissions, names, symlinks, and other actions. The rules are stored in files under /lib/udev/rules.d/ and /etc/udev/rules.d/. The latter directory can be used to create additional or override existing rules. The /dev/ directory is not a regular directory on the root filesystem, but a virtual filesystem of type tmpfs that is mounted by udev during system startup. tmpfs is a filesystem that resides in memory and can grow and shrink dynamically. The content of /dev/ is not stored in /etc/udev/dev, but is created by udev based on the rules and the available devices. udev does not prevent the creation of block or character devices in /dev/ using mknod, but it may overwrite or remove them if they conflict with the rules or the device events. References: LPI Linux Essentials - 1.101.2, LPI Linux Administrator - 102.4


NEW QUESTION # 46
When in Normal mode in vi, which character can be used to begin a reverse search of the text?
r

  • A.
  • B. s
  • C. F
  • D. ?
  • E. /

Answer: B


NEW QUESTION # 47
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. job -b dmaint
  • B. dbmaint &>/dev/pts/null
  • C. bg dbmaint
  • D. nohup dbmaint &
  • E. wait dbmaint

Answer: D

Explanation:
Explanation
This command will run dbmaint in the background and make it immune to hangup signals, which means it will continue to run even when the user logs out of the system. The nohup command prefixes the command with nohup, which intercepts the SIGHUP signal that is sent to the process when the terminal sessionends. The output of the command is redirected to a file called nohup.out by default, unless specified otherwise. The & symbol puts the command in the background, allowing the user to run other commands in the same shell.
The other commands are incorrect for the following reasons:
* A, job -b dbmaint: This command is invalid and will not work. There is no job command in Linux, and the -b option is not a valid option for any command. The command that is used to list the background jobs in the current shell session is jobs, and it does not have a -b option either.
* B, dbmaint &>/dev/pts/null: This command will run dbmaint in the background, but it will not prevent it from being terminated when the user logs out of the system. The &> symbol redirects both the standard output and standard error of the command to a file or device, in this case /dev/pts/null. However, this device does not exist, and the redirection will fail. Even if the device was /dev/null, which is a special device that discards any output sent to it, the command would still be susceptible to hangup signals and would not survive the logout.
* D, bg dbmaint: This command will not run dbmaint in the background, but it will try to resume a stopped background job with the name dbmaint. The bg command is used to move a stopped foreground process to the background and continue its execution. However, if there is no such process with the name dbmaint, the command will fail. Even if there was such a process, it would still be terminated when the user logs out of the system, unless it was disowned or prefixed with nohup.
* E, wait dbmaint: This command will not run dbmaint in the background, but it will wait for a background process with the name dbmaint to finish and return its exit status. The wait command is used to pause the execution of the current shell until one or more background processes complete.
* However, if there is no such process with the name dbmaint, the command will fail. Even if there was such a process, it would still be terminated when the user logs out of the system, unless it was disowned or prefixed with nohup.
References:
* How to Run Linux Commands in Background | Linuxize
* How to Run Linux Commands in Background | phoenixNAP KB
* How to Run Linux Commands in the Background - MUO
* How to Run Linux Commands in Background & Bring Them Back


NEW QUESTION # 48
What is the first program the Linux kernel starts at boot time when using System V init?

  • A. /etc/rc.d/rcinit
  • B. /proc/sys/kernel/init
  • C. /boot/init
  • D. /lib/init.so
  • E. /sbin/init

Answer: E

Explanation:
Explanation
The first program the Linux kernel starts at boot time when using System V init is /sbin/init. System V init is a traditional init system that uses a series of shell scripts to initialize and manage the system services. The init program is the parent of all other processes and it is responsible for reading the /etc/inittab file and executing the appropriate scripts for each runlevel. The /sbin/init program 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
* A guide to System V Init3
* Linux Init Levels Explained: Init 0 - Init 64
* Init Systems Unveiled - Understanding the Differences Between Systemd and SystemV5


NEW QUESTION # 49
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

  • A. No action is required
  • B. grub-install
  • C. grub
  • D. kill -HUP $(pidof grub)

Answer: B

Explanation:
Explanation
After modifying GNU GRUB's configuration file, which is usually located at /etc/default/grub, the command that must be run for the changes to take effect is grub-install12. The grub-install command is used to install GRUB on a device or partition, and to update the boot sector and the core image of GRUB3. The command takes the following basic syntax:
$ grub-install [options] install_device
The install_device argument specifies the device or partition where GRUB should be installed, such as
/dev/sda or /dev/sda1. The options can be used to control various aspects of the installation, such as the target platform, the boot directory, the force mode, the verbosity level, etc3.
The grub-install command also invokes the grub-mkconfig command, which generates the GRUB configuration file (usually located at /boot/grub/grub.cfg) based on the settings in /etc/default/grub and the scripts in /etc/grub.d4. The grub-mkconfig command can also be run separately to update the GRUB configuration file without reinstalling GRUB on the device or partition4.
The other options in the question are not correct because:
* A. kill -HUP $(pidof grub): This command would send the hangup signal (HUP) to the process ID (PID) of grub, which is a command-line interface for GRUB. This would not update the GRUB configuration file or install GRUB on the device or partition.
* C. grub: This command would run the command-line interface for GRUB, which allows the user to interact with GRUB and execute various commands. This would not update the GRUB configuration file or install GRUB on the device or partition, unless the user explicitly runs the appropriate commands within the interface.
* D. No action is required: This option is false, because modifying the /etc/default/grub file alone does not affect the GRUB configuration file or the GRUB installation. The user needs to run either grub-install or grub-mkconfig to apply the changes.
References:
1: How to Update Grub on Ubuntu and Other Linux Distributions - It's FOSS 2: How to Configure the GRUB2 Boot Loader's Settings 3: Ubuntu Manpage: grub-install - install GRUB on a device 4: [GNU GRUB Manual 2.06: Invoking grub-mkconfig] : [GNU GRUB Manual 2.06: Invoking grub] : [kill(1) - Linux manual page] : [pidof(8) - Linux manual page] : [grub(8) - Linux manual page]


NEW QUESTION # 50
Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt(Inode 525385)?
ln -h a.txt c.txt

  • A. ln c.txt a.txt
  • B.
  • C. ln a.txt c.txt
  • D. ln -f c.txt a.txt
  • E. ln -i 525385 c.txt

Answer: D


NEW QUESTION # 51
Which of the following commands outputs testto the shell?
cat <!EOT

  • A. test
    EOT
    cat <<EOT
  • B. test
    EOT
  • C. test
    EOT
    cat !<EOT
  • D. test
    EOT
    cat &<EOT
  • E. test
    EOT
    cat <|EOT

Answer: B


NEW QUESTION # 52
Which of the following files exist in a standard GRUB 2 installation? (Choose two.)

  • A. /boot/grub/stages/stage0
  • B. /boot/grub/linux/vmlinuz
  • C. /boot/grub/i386-pc/1vm.mod
  • D. /boot/grub/fstab
  • E. /boot/grub/grub.cfg

Answer: C,E

Explanation:
Explanation
The files that exist in a standard GRUB 2 installation are /boot/grub/i386-pc/1vm.mod and
/boot/grub/grub.cfg. The /boot/grub/i386-pc/1vm.mod file is a GRUB 2 module that provides support forthe
1vm command, which allows loading a virtual machine image from a disk1. The /boot/grub/grub.cfg file is the main configuration file for GRUB 2, which contains the menu entries and options for the bootloader2. The other files are either non-existent or do not belong to GRUB 2. The /boot/grub/stages/stage0 file ispart of the GRUB legacy bootloader, which used a different architecture and naming scheme than GRUB 23. The
/boot/grub/fstab file is not a valid file name, as fstab is the name of the file system table file that isusually located in /etc directory4. The /boot/grub/linux/vmlinuz file is also not a valid file name, as vmlinuz is the name of the compressed Linux kernel image that is usually located in /boot directory5. References:
* GRUB 2 bootloader - Full tutorial - Dedoimedo1
* Grub2/Installing - Community Help Wiki - Official Ubuntu Documentation2
* GRUB bootloader - Full tutorial - Dedoimedo3
* fstab(5) - Linux manual page4
* vmlinuz(5) - Linux manual page5


NEW QUESTION # 53
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

  • A. Ethernet MAC address
  • B. Device IRQ settings
  • C. Device vendor identification
  • D. PCI bus speed
  • E. System battery type

Answer: B,C,D


NEW QUESTION # 54
Which of the following commands lists all currently installed packages when using RPM package management?

  • A. yum --query --all
  • B. rpm --list -installed
  • C. yum --list --installed
  • D. rpm --query --all

Answer: D

Explanation:
Explanation
The command that lists all currently installed packages when using RPM package management is rpm
--query --all. This command displays information about all the packages that are currently installed on the system, including their name, version, release, and architecture1. The output can be customized by using various query options and format specifiers2.
The other commands are either invalid or related to YUM, not RPM. yum --query --all is not a valid YUM command, as YUM does not have a --query option3. yum --list --installed is a valid YUM command, but itlists the packages from the YUM repositories, not the RPM database3. rpm --list --installed is not a valid RPM command, as RPM does not have a --list option2.
References:
* RPM Command in Linux | Linuxize
* rpm(8) - Linux manual page
* Linux package management with YUM and RPM | Enable Sysadmin


NEW QUESTION # 55
Which of the following apt-getsubcommands installs the newest versions of all currently installed packages?
auto-update

  • A.
  • B. dist-upgrade
  • C. full-upgrade
  • D. update
  • E. install

Answer: C


NEW QUESTION # 56
......

Pass 101-500 Exam - Real Questions and Answers: https://exams4sure.briandumpsprep.com/101-500-prep-exam-braindumps.html