Questions
ayuda
option
My Daypo

ERASED TEST, YOU MAY BE INTERESTED ONLPIC 1.3

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
LPIC 1.3

Description:
LPIC parte 3 de 3

Author:
AVATAR

Creation Date:
13/03/2024

Category:
Others

Number of questions: 40
Share the Test:
Facebook
Twitter
Whatsapp
Share the Test:
Facebook
Twitter
Whatsapp
Last comments
No comments about this test.
Content:
What is the output when the regular expression s/[ABC] [abc]/xx/ is applied to the following string? ABCabc - ABxxbc xxCxxc xxxxxx ABCabc Axxaxx.
Which of the following commands print the current working directory when using a Bash shell? (Choose two.) echo "${PWD}" echo "${WD}" printwd pwd echo "${pwd}".
Which of the following commands outputs test to the shell? cat <!EOT test EOT cat <|EOT test EOT cat !<EOT test EOT cat &<EOT test EOT cat <<EOT test EOT.
What is the default nice level when a process is started using the nice command? 0 -10 20 10 15.
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remote that directory? rmdir ~/\\dir rmdir "~/\dir" rmdir ~/'dir' rmdir ~/\dir rmdir "˜~/\dir'.
Which of the following commands can perform searches on file contents using regular expressions? find locate grep reggrep pgrep.
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories? -maxdepth -dirmax -maxlevels -s -n.
Which of the following commands generates a list of user names from /etc/passwd along with their login shell? column -s : 1,7 /etc/passwd chop -c 1,7 /etc/passwd colrm 1,7 /etc/passwd sort -t: -k1,7 /etc/passwd cut -d: -f1,7 /etc/passwd.
If the gzip compressed tar archive texts.tgz contains the files a.txt and b.txt, which files will be present in the current directory after running gunzip texts.tgz? Only a.txt, b.txt, and texts.tgz Only texts.tar and texts.tgz Only a.txt.gz and b.txt.gz Only a.txt and b.txt Only texts.tar.
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? By using the command :repeat followed by the number and the command By specifying the number right in front of a command such as 41 or 2yj. By selecting all affected lines using the shit and cursor keys before applying the command. By issuing a command such as :set repetition=4 with repeats every subsequent command 4 times. By specifying the number after a command such as 14 or yj2 followed by escape.
Which of the following statements is correct for a command ending with an & character? The command's output is redirected to /dev/null. The command is run in background of the current shell. The command's output is executed by the shell. The command is run as a direct child of the init process. The command's input is read from /dev/null.
Which of the following commands reads a file and creates separate chunks of a given size from the file's contents? ar cat break split parted.
What is the purpose of the xargs command? It passes arguments to an X server. It repeats the execution of a command using different parameters for each invocation. It reads standard input and builds up commands to execute. It asks a question, graphically, and returns the answer to the shell. It allows specifying long options (like --help) for commands that normally only accept short options (like -h).
Which command is used to change the priority of an already running process? (Specify ONLY the command without any path or parameters.).
In Bash, inserting 1>&2 after a command redirects"¦ "¦standard error to standard input. "¦standard output to standard error. "¦standard input to standard error. "¦standard error to standard output. "¦standard output to standard input.
Where is the bootloader stored on the hard disk of a UEFI system? In the EFI Boot Record (EBR). In the Master Boot Record (MBR). On the EFI System Partition (ESP). On the partition labeled boot. On the partition number 127.
What is the correct way to set the default systemd boot target to multi-user? systemctl isolate multi-user.target systemctl set-runlevel multi-user.target systemctl set-boot multi-user.target systemctl set-default multi-user.target systemctl boot -p multi-user.target.
Which of the following statements are correct about the initial RAM disk involved in the boot process of Linux? (Choose two.) An initramfs is a compressed file system archive, which can be unpacked to examine its contents. An initramfs file contains the MBR, the bootloader and the Linux kernel. After a successful boot, the initramfs contents are available in /run/initramfs/. The kernel uses the initramfs temporarily before accessing the real root file system. An initramfs does not depend on a specific kernel version and is not changed after the initial installation.
Which of the following commands loads a kernel module along with any required dependency modules? depmod modprobe module_install insmod loadmod.
What information can the lspci command display about the system hardware? (Choose three.) System battery type Device IRQ settings PCI bus speed Ethernet MAC address Device vendor identification.
Which System V init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.).
Which of the following apt-get subcommands installs the newest versions of all currently installed packages? auto-update dist-upgrade full-upgrade update install.
Given the following input stream: txt1.txt atxt.txt txtB.txt Which of the following regular expressions turns this input stream into the following output stream? txt1.bak.txt atxt.bak.txt txtB.bak.txt s/^.txt/.bak/ s/txt/bak.txt/ s/txt$/bak.txt/ s/^txt$/.bak^/ s/[.txt]/.bak$1/.
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting? tune2fs -d 200 /dev/sda1 tune2fs -i 200 /dev/sda1 tune2fs -c 200 /dev/sda1 tune2fs -n 200 /dev/sda1 tune2fs --days 200 /dev/sda1.
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.).
A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots? sing lsmod --remove --autoclean without specifying the name of a specific module Using modinfo ""k followed by the name of the offending module Using modprobe ""r followed by the name of the offending module Adding a blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf Deleting the kernel module's directory from the file system and recompiling the kernel, including its modules.
What is contained on the EFI System Partition? The Linux root file system The first stage boot loader The default swap space file The Linux default shell binaries The user home directories.
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? job ""b dmaint dbmaint &>/dev/pts/null nohup dbmaint & bg dbmaint wait dbmaint.
Which of the following files, located in a user's home directory, contains the Bash history? .bashrc_history .bash_histfile .history .bash_history .history_bash.
Which of the following commands lists all currently installed packages when using RPM package management? yum --query --all yum --list --installed rpm --query --list rpm --list --installed rpm --query --all.
Which of the following settings for umask ensures that new files have the default permissions -rw-r-----? 0017 0640 0038 0227 0027.
When in Normal mode in vi, which character can be used to begin a reverse search of the text? r / F ? s.
Which of the following tools can show the complete path of an executable file that the current shell would execute when starting a command without specifying its complete path? (Choose two.) find pwd which locate type.
Which of the following commands determines a file's format by using a definition database file which contains information about all common file types? type file magic pmagic hash.
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.).
When booting from the hard disk, a computer successfully loads the Linux kernel and initramfs but hangs during the subsequent startup tasks. The system is booted using a Linux based rescue CD to investigate the problem. Which of the following methods helps to identify the root cause of the problem? Using the dmesg command from the rescue CD's shell to view the original system's boot logs. Investigating the file /proc/kmsg on the computer's hard disk for possible errors. Investigating the file /var/log on the computer's hard disk for possible errors. Using chroot to switch to the file system on the hard disk and use dmesg to view the logs. Rebooting again from the hard drive since the system successfully booted from the rescue CD.
Given the following two symbolic links in a System V init configuration: /etc/rc1.d/K01apache2 /etc/rc2.d/S02apache2 When are the scripts executed that are referenced by these links? (Choose two.) S02apache2 is run when runlevel 2 is entered. S02apache2 is run when runlevel 2 is left. K01apache2 is never run because K indicates a deactivated service Both S02apache2 and K01apache2 are run during a system shutdown. K01apache2 is run when runlevel 1 is entered.
Consider the following directory: drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.) chmod g+s sales setpol -R newgroup=sales sales chgrp -p sales sales chown --persistent *.sales sales chmod 2775 sales.
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 ln c.txt a.txt ln a.txt c.txt ln -f c.txt a.txt ln -i 525385 c.txt.
Which of the following signals is sent to a process when the key combination Ctrl+c is pressed on the keyboard? SIGTERM SIGCONT SIGSTOP SIGKILL SIGINT.
Report abuse Consent Terms of use