Quiz
Linux commands, vi, GRUB 2 and package management
Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.
Fragen in diesem Quiz (73)
1A backup software heavily uses hard links between files which have not been changed in between two backup runs. Which benefits are realized due to these hard links ?
- AThe backup consumes less space because the hard links point to the same data on disk instead of storing redundant copies.
- BThe old backups can be moved to slow backup media, such as tapes, while still serving as hard link target in new backups
- CThe backup runs faster because hard links ar asynchronous operations, postponing the copy operation to a later point in time
- DThe backup is guaranteed to be uncharged because a hard linked file cannot be modified after its creation
- EThe backup runs faster because, instead of copying the data of each file, hard links only change file system meta data.
2What directory contains configuration files for addicional yum repositories? ( Specify the full path to the directory). [blank_start]/etc/yum.conf[blank_end]
- A/etc/yum.conf
3From a bash shell, which of the following commands directly execute the instructions from the file /usr/local/bim/runme.sh whitout starting a subshell? ( choose two).
- A/bin/bash /usr/local/bin/runme.sh
- B/usr/local/bin/runme.sh
- Csource /usr/local/bin/runme.sh
- Drun /usr/local/bin/runme.sh
- E./usr/local/bin/runme.sr
4Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?
- Agrub-mbrinstall /dev/sdc
- Bgrub2 install /dev/sdc
- Cgrub-setup /dev/sdc
- Dgrub-install /dev/sdc
- Egrub-mkrescue /dev/sdc
5In 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?
- Aby selecting all affected lines using the shit and cursor keys before applying the command
- BBy specifying the number right in front of a command such as 41 or 2yj.
- CBy specifying the number after a command such as 14 or y j2 followed by escape.
- DBy issuing a command such as :set repetion-4 with repeats every subsequent command 4 times.
- Eby using the command :repeat followed by the number and the command
6Which of the following vi commands deletes two lines, the current and the following line?
- Ad2
- Bde12
- Cdd2
- D2d
- E2dd
7Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
- Asplit -c 1,4 /etc/passwd
- Bpaste -f 1,4 /etc/passwd
- Csort -t : -k 1,4 /etc/passwd
- Dcut -d: -f 1,4 /etc/passwd
- Efmt - f 1,4 /etc/passwd
8Which of the following regular expressions represents a single upper-case letter?
- A{AZ}
- B%C
- C[A-Z]
- D!a-z
- E:UPPER:
9Which of the following commands lists all currently installed packages when using RPM package management?
- Arpm --query --all
- Byum --query --all
- Crpm --query --list
- Dyum --list --installed
- Ermp --list --installed
10What is the purpose of the ldd command?
- AIt turns a dynamically linked binary into a static binary.
- BIt runs a binary with an alternate library search path.
- CIt installs and updates installed share libraries.
- DIt defines which version of a library should be used by default.
- EIt lists which shared libraries a binary needs to run.
11Which of the following commands loads a kernel module along with any required dependency modules?
- Amodprode
- Bmodule_install
- Cdepmod
- Dloadmod
- Einstmod
12Which of the following commands print the current working directory when using a Bash Shell?
- Aecho "${pwd}"
- Bprintwd
- Cecho "{PWD}"
- Decho "${WD}"
- Epwd
13What is true regarding UEFI firmware ? (Choose two).
- AIt is loaded from a fixed boot disk position.
- BIt can read and interpret partition tables.
- CIt can use and read certain file systems.
- DIt stores its entire configuration on the /boot/partition
- EIt is stored in a special area within the GPT metadata.
14When considering the use of hard links, what are valid reasons not to use hard links?
- AHard links are specific to one filesystem and cannot point to files on another filesystem.
- BIf users other than root should be able to create hard links, suln has to be installed and configured.
- CHard links are note available on all linux systems because traditional filesystems, such as ext4, do not support them.
- DWhen a hard linked file is changed, a copy of the file is created and consumes additional space.
- EEach hard link individual ownership, permissions and ACLs which can lead to unintended disclosure of file content.
15Which of the following statements are correct about the initial RAM disk involved in the boot process of Linux?
- AAn initramfs file contains the MBR, the bootloader and the Linux kernel.
- BTHe kernel uses the initramfs temporarily before accessing the real root file system.
- CAn initramfs does not depend on a specific kernel version and is not changed after the initial installation.
- DAn initramfs is a compressed file system archive, which can be unpacked to examine its contents.
- EAfter a successful boot, the initramfs contents are available in /run/initramfs/.
16When in Normal mode in vi, which character can be used to begin a reverse search of the text?
- Ar
- B?
- Cs
- DF
- E/
17Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?
- Afoo | tee /tmp/foodata
- Bfoo > /tmp/foodata
- Cfoo | less /tmp/foodata
- Dfoo | cp /tmp/foodata
- Efoo >stdout >> /tmp/foodata
18Which of the following commands show how the shell handles a specific command?
- Afileinfo
- Bwhere
- Ctype
- Dcase
- Estat
19What information can the lspci command display about the system hardware? (Choose three);
- ADevice IRQ settings
- BPCI bus speed
- CSystem battery type
- DEthernet MAC address
- EDevice vendor identification
20Which of the following signals is sent to a process when the key combination Ctrl +Z is pressed on the keyboard?
- ASIGTERM
- BSIGINT
- CSIGCONT
- DSIGKILL
- ESIGSTOP
21Which of the following commands reads a file and creates separate chunks of a given size from the file's contents?
- Asplit
- Bparted
- Car
- Dcat
- Ebreak
22Which daemon handles powe management events on a Linux system?
- Ainetd
- Bacpid
- Cbatteryd
- Dpwrmgntd
- Epsd
23What is the process ID number of the init process on a System V init based system?
- A1
- BIt is different with each reboot
- C-1
- DIt is set to the current run level
- E0
24Which of the followinf commands installs all packages with a name ending with the string foo?
- Azypper install "*foo"
- Bzypper get "*foo"
- Czypper add ".*foo"
- Dzypper force "*foo"
- Ezypper update "foo?"
25Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?
- A7
- B83
- C82
- D8e
- Efd
26Which of the following signals is sent to a process when the key combination Ctrl+C is pressed on the keyboard?
- ASIGINT
- BSIGTERM
- CSIGKILL
- DSIGCONT
- ESIGSTOP
27Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the name only without any path.) [blank_start]cmdline[blank_end]
- Acmdline
28Which of the following files exist in a standar GRUB 2 installation? (Choose two)
- A/boot/grub/i386-pc/lvm.mod
- B/boot/grub/linux/vmlinuz
- C/boot/grub/fstab
- D/boot/grub/stages/stage0
- E/boot/grub/grub.cfg
29When is the content of the kernel ring buffer reset? (Choose two).
- AWhen the system is shut down or rebooted
- BWhen a configurable amount of time, 15 minutes by defaut, has passed
- CWhen the ring buffer is explicitly reset using the command dmesg --clear
- DWhen the kernel loads a previously unloaded kernel module
- EWhen the ring buffer is read using dmesg without any additional parameters
30What can the logical volume manager (LVM) be used for?
- ATo dynamically change the size of logical volumes.
- BTo encrypt logical volumes.
- CTo create RAID 9 arrays.
- DTo create snapshots.
- ETo dynamically create or delete logical volumes.
31Which of the following commands changes the number of days before the ex3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
- Atune2fs -n 200 /dev/sda1
- Btune2fs --days 200 /dev/sda1
- Ctune2fs -d 200 /dev/sda1
- Dtune2fs -i 200 /dev/sda1
- Etune2fs -c 200 /dev/sda1
32If the gzip compressed tar archive texts.tgz contains the files a.txt and b.txt, which files will ve present in the current directory after running gunzip texts.tgz?
- AOnly texts.tar
- BOnly a.txt.gz and b.txt.gz
- COnly a.txt, b.txt, and texts.tgz
- DOnly a.txt and b.txt
- EOnly texts.tar and texts.tgz
33Which of the followinf commands displays the path to the executable file that would be executed when the command foo is invoked?
- Aapropos foo
- Blsattr foo
- Cwhatis foo
- Dwhich foo
- Elocate foo
34Which file from the /proc/ file system contains a list of all currently mounted devices? (Specify the full name of the file, including path.) [blank_start]/proc/mounts[blank_end]
- A/proc/mounts
35Which the following commands sets the SetUID permission on the executable /bin/foo?
- Achmod u-s /bin/foo
- Bchmod 755+s /bin/foo
- Cchmod 4755 /bin/foo
- Dchmod 1755 /bin/foo
- Echmod 2755 /bin/foo
36Which command must be entered before exiting vi to save the current file as filea.txt?
- A:save filea.txt
- B%w filea.txt
- C:s filea.txt
- D%s filea.txt
- E:w filea.txt
37Which of the following are valid stream redirection operators within bash? (Choose two.)
- A>>>
- B%>
- C2>&1
- D#>
- E<
38Which of the following commands can perform searches on file contents using regular expressions?
- Apgrep
- Blocate
- Cgrep
- Dfind
- Ereggrep
39In Bash, inserting 1>&2 after a command redirects...
- A...standard output to santand error.
- B...standard input to santand error.
- C...standard output to santand input.
- D...standard error to santand input.
- E...standard error to santand output.
40Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?
- A0027
- B0750
- C0029
- D7640
- E0036
41Which file defines the network locations from where the Debian package manager downloads software packages?
- A/etc/dpkg.cfg
- B/etc/apt/apf.conf
- C/etc/dpkg/dselect.cfg
- D/etc/apt/sources.list
- E/etc/apt/apt.conf.d
42What are the main differences between GPT and MBR partition tables regarding maximum number and size of partitions? CHoose two
- ABy default, GPT can manage up to 64 partitions while MBR only supports 16 primary partitions.
- BMBR can handle partition sizes up to 4 TB, whereas GPT supports partition sizes up to 128 ZB.
- CBoth GPT and MBR support up to four primary partitions, each with up to 4096 TB.
- DMBR can handle partition sizes up to 2.2TB, whereas GPT supports sizes up to 9.4 ZB.
- EBy default, GPT can manage up to 128 partitions while MBR only supports four primary partitions.
43The 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?
- Abg dbmaint
- Bnohup dbmaint &
- Cdbmaint &>/dev/pts/null
- Dwait dbmaint
- Ejob -b dmaint
44Which of the following commands outputs test to the shell?
- Acat &<E0T
test
E0T - Bcat <! E0T
test
E0T - Ccat << E0T
test
E0T - Dcat !<E0T
test
E0T - Ecat < | E0T
test
E0T
- Acat &<E0T
45Which command displays a list of all background tasts running in the currente shell? ( Specify ONLY the command without any path or parameters.) [blank_start]jobs[blank_end]
- Ajobs
46Which of the following Linux filesystems preallocate a fixed number of inodes when creating a new filesystem instead of generating them as needed? (Choose two.)
- AJFS
- BXFS
- Cprocfs
- Dext3
- Eext2
47Which of the following commands list all files and directories within the /tmp/directory and its subdirectories which are owned by the user root? (choose two.)
- Afind /tmp -user root -print
- Bfind -path /tmp -uid root
- Cfind -path /tmp -user root -print
- Dfind /tmp -user root
- Efind /tmp -uid root -print
48What output will be displayed when the user fred executes the followinf command?
echo 'fred $USER'- Afred fred
- B'fred $USER'
- Cfred $USER
- D'fred fred'
- Efred /home/fred/
49Which of the following commands displays the manual page command from section 1?
- Aman command (1)
- Bman 1.command
- Cman -s 1 command
- Dman command@1
- Eman 1 command
50Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.) [blank_start]cmdline[blank_end]
- Acmdline
51What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
- A99
- B49
- C9
- D15
- E19
52Given the followinf two symbolic links in a System V init configuration:
/etc/rc1.d/K01apache2
/etc/rc2.d/S02apache2- ABoth S02apache2 and K01apache2 are run during a system shutdown.
- BK01apache2 is never run because K indicates a deactivated service.
- CS02apache2 is run when runlevel 2 is left.
- DS02apache2 is run when runlevel 2 is entered.
- EK01apache2 is run when runlevel 1 is entered.
53Which program updates the database that is used by the locate command ? (Specify ONLY the command without any path or parameters.)[blank_start]updatedb[blank_end]
- Aupdatedb
54Which of the following commands installs the GRUB boot files into the currently active file systems and the boot loader into the first partition of the first disk?
- Agrub-install /dev/sda1
- Bgrub-install current /dev/sda0
- Cgrub-install /dev/sda0
- Dgrub-install /dev/sda
- Egrub-install current /dev/sda1
55What is true regarding the command
ls > files
if files does not exist?- Athe output of ls is printed to the terminal
- Bfiles is created and contains the output of ls
- CAn error message is shown and ls is not executed
- DAny output of ls is discarded
- EThe command files is executed and receives the output ls
56Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.) [blank_start]du[blank_end]
- Adu
57What does the command mount --bind do ?
- AIt mounts all file systems listed in /etc/fstab which have the option userbind set
- Bit mounts all available filesystems to the current directory
- CIt permanently mounts a regular file to a directory
- DIt makes the contents of one directory available in another directory.
- EIt mounts all user mountable filesystems to the user's home directory
58Which chown command changes the ownership to dave and the group to staff on a file named data.txt?
- Achown dave:staff data.txt
- Bchown dave+ staff data.txt
- Cchown --user dave --group staff data.txt
- Dchown -u dave -g staff data.txt
- Echown dave/staff data.txt
59How many fields are in a systactically correct line of /etc/fstab?
- A4
- B6
- C5
- D3
- E7
60Which is the default percentage of reserved space for the root user on new ext4 filesystems?
- A3%
- B15%
- C5%
- D0%
- E10%
61Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose two.)
- AFIND
- BLABEL
- CNAME
- DID
- EUUID
62Which of the following properties of an existing file changes when a hard link pointing to that file is created?
- AFile size
- BModdify timestamp
- CPermissions
- DLink count
- EInode number
63Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all user on the system? (Specify the full path to the directory.) [blank_start]/usr/local/bin/[blank_end]
- A/usr/local/bin/
64After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed ?
- ABy using mount -f to force a mount of the file system
- BBy running xfsck on the file system
- CBy running xfsadmin repair on the file system
- DBy mounting the file system with the option xfs_repair
- EBy running xfs_repair on the file system
65What is the correct way to set the default systemd boot target to multi-user?
- Asystemctl set-boot multi-user.target
- Bsystemctl isolate multi-user.target
- Csystemctl set-runlevel multi-user.target
- Dsystemctl set-default multi-user.target
- Esystemctl boot -p multi-user.target
66A yum epository can declare sets of related packages. Which yum command installs all packages belonging to the group admintools?
- Ayum groupinstall admintools
- Byum taskinstall admintools
- Cyum pkgsel --install admintools
- Dyum collection install admintools
- Eyum install admintools/*
67Which of the followinf commands are valid in the GRUB 2 configuration file? (choose two)
- Akpartx
- Buefi
- Cpxe-ifconfig
- Dmenuentry
- Einsmod
68Which of the following commands displays the contents of a gzip compressed tar archive?
- Atar cf archive.tgz
- Bgzip archive.tgz | tar xvf -
- Ctar ztf archive.tgz
- Dtar - fzt arcxhive.tgz
- Egzip -d archive.tgz | tar tvf -
69When removing a package on a system using dpkg package management, which dpkg option ensures configuration files are removed as well?
- A--vacum
- B--purge
- C--clean
- D--remove
- E--declare
70Which of the following commands creates or, in case it already exists, overwrites a file called data with the output of ls?
- Als >& data
- Bls >>> data
- Cls >> data
- Dls 3> data
- Els > data
71Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21- Achmod g+s sales
- Bsetpol - R newgroup=sales sales
- Cchgrp - p sales sales
- Dchown --persistent *.sales sales
- Echmod 2775 sales
72Given 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- As/^.txt/.bak/
- Bs/^txt$/.bak^/
- Cs/^txt/bak.txt/
- Ds/txt$/bak.txt/
- Es/[.txt]/.bak$1
73Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.) [blank_start]nice[blank_end]
- Anice
Informationen
- Beschreibung
- Quiz am Ohne Titel, erstellt von Stefanny Kristine am 20/01/2020.
- Autor
- Stefanny Kristine
- Sprache
- Português
- Aufrufe
- 5
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz