Ramdom Flashcards

1
Q

What type of file system is created by mkfs when it is executed with the block device name only and withouth any additional params

A

ext2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What of the following statements are true regarding /dev/ when using udev?

A

Additional rules for udev can be created by adding them to /etc/udev/rules.d/

The /dev/ directory is stored in /etc/udev/dev and is restored during system startup.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. What is the usual way to pass this change to the kernel from your boot loader

A

Pass init=/bin/sh on the kernel param line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which 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?

A

0027

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

A

tune2fs -i 200 /dev/sda1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Command converts spaces in a file to tab characters and prints the result to standard output

A

unexpand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

which utility would be used to change how oftten a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem

A

tune2fs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the default percentage of reserved space for the root user on a new ext4 filesystem

A

5%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens when a file system that is not listed in /etc/fstab nor known to the system is manually mounted

A

the command systemctl mountsync can be used to create a mount unit based on the existing mount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is true about mount points

A

Every existing directory can be used as a mount point.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Kernel parameter that instructs the kernel to suppress most boot messages

A

quiet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

FILL BLANK -
Which program updates the database that is used by the locate command? (Specify ONLY the command without any path or parameters).

A

updatedb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the command mount –bind do?

A

It makes the contents of one directory available in another directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Consider following output

525385 -rw-rw-r– 2 1000 1000 0 Feb 12 19:44 a.txt
526255 lrwxrwxrwx 1 1000 1000 5 Feb 12 19:44 b.txt -> a.txt

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

A

ln a.txt c.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what commands will display all currently mounted filesystems

A

cat /proc/self/mounts

mount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Command can perform full text search on all available packages on debian system

A

apt-cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

updates linker cache of shared libraries

A

ldconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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.)

A

chgrp -p sales sales

chmod 2775 sales

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

FILL BLANK -
Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)

A

df

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Which chown command changes the ownership to dave and the group to staff on a file named data.txt?

A

chown dave:staff data.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

When considering the use of hard links, what are valid reasons not to use hard links?

A

Hard links are specific to one filesystem and cannot point to files on another filesystem

hard links are not availabel on all Linux systems because traditional filesystems, such as ext4, do not suport them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

In compliance with the FHS in what directory are man pages found?

A

/usr/share/man

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

FILL BLANK -
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

A

cmdline

/proc/cmdline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is the process ID number of the init process on a SysV init based system?

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Which daemon handles power management events on a Linux system?

A

acpid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

what information is stored in the BIOS

A

Boot device order

Hardware configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.)

A

Some parts of the boot process can be configured from the BIOS

The BIOS initiates the boot process after turning the computer on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

During a system boot cycle, what program is executed after the BIOS completes its tasks?

A

The bootloader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

What is true regarding UEFI firmware?

A

It can use and read certain file systems

It is stored in a special area within the GPT metadata

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

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?

A

Adding a blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

When is the content of the kernel ring buffer reset?

A

When the ring buffer is explicitly reset using the command dmesg –clear

When the system is shut down or rebooted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

which command displays the contents of the Kernel Ring Buffer on the command line?
provide only the command name without any options or path information.

A

dmesg

/bin/dmesg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

What commands reboot the system with using SysV init

A

shutdown -r now

telinit 6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

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

A

/sbin/init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

A Debian package creates several files during its installation. What command searches for packages owning the file /etc/debian_version?

A

dpkg -S /etc/debian_version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

how is symbolic link called bar.conf pointing to foo.conf created

A

ln -s foo.conf bar.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

What is contained on the EFI System Partition?

A

The first stage boot loader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

directories on a 64 bit Linux system typically contain shared libraries?

A

~/.lib64/

/lib64/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What is the name of the main config file for GUN GRUB

A

menu.lst

grub.cfg

grub.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

files exist in a standard GRUB 2 installation?

A

/boot/grub/i386-pc/lvm.mod

/boot/grub/grub.cfg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

commands installs all packages with a name ending with the string foo?

A

zypper install “*foo”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

updates already installed RPM package rpmname

A

rpm -U rpmname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it what commnd do you issue

A

rpm -qpl apache-xml.i386.rpm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

properties of a Linux system should be changed when a virtual machine is cloned?

A

The permissions of /root/

The SSH host keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

what does the command grub-install /dev/sda do

A

installs all required files and configures the boot loader on device/dev/sda

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

partition types is used for Linux swap spaces when partitioning hard disk drives?

A

82

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

What is true regarding the configuration of yum?

A

The configuration of package repositories can be divided into multiple files

in case /etc/yum.repos.d/ contains files, /etc/yum.comf is ignored

Repository configurations can include variables such as $basearch or $releasever

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed the first time

A

dpkg-reconfigure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

After moving data to a new filesystem, how can the former pat of the data be kept intact in order to avoid reconfig of existing apps

A

by creating symbolic link from old to the new path of data

by mounting the new filesystem on the original path of the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

Command used to update the list of available packages when using dpkg based package management

A

apt-get update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

apt-get subcommands installs the newest versions of all currently installed packages?

A

dist-upgrade

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

apt-get command will install the newest versions of all currently installed packages without removing any packages or installing new packages that are already installed.

A

upgrade

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

uninstalls a package but keeps its configuration files in case the package is re-installed?

A

dpkg -r pkgname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

In which directory must definition files be placed to add additional repositories to yum

A

/etc/yum.repos.d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

lists the dependencies of the RPM package file foo.rpm?

A

rpm -qpR foo.rpm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

A

19

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root?

A

find /tmp -user root -print

find -path /tmp -user root - print

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

valid stream redirection operators within Bash?

A

<
«<
>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

vi commands deletes two lines, the current and the following line?

A

2dd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

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?unning the program logs out?

A

bg dbmaint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

From a Bash shell, which of the following commands directly execute the instructions from the file /usr/local/bin/runme.sh without starting a subshell?

A

source /usr/local/bin/runme.sh

. /usr/local/bin/runme.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

FILL BLANK -
Which program runs a command in specific intervals and refreshes the display of the program’s output? (Specify ONLY the command without any path or parameters.)

A

watch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

A

p (lowercase)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?

A

tr -d ‘\r’ < userlist.txt > newlist.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

txt1.txt
atxt.txt
txtB.txt
What expression turns this input stream into the following output stream? txt1.bak.txt atxt.bak.txt txtB.bak.txt

A

s/txt/bak.txt/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

What is correct about /proc/

A

All changes to files in /proc/ are immediately recognized by the kernel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

command must be entered before exiting vi to save the current file as filea.txt?

A

:w filea.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

following signals is sent to a process when the key combination Ctrl+C is pressed on the keyboard?

A

SIGINT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

command displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?

A

foo | tee /tmp/foodata

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

What output will be displayed when the user fred executes the following command? echo ˜fred $USER

A

fred fred

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?

A

lsattr foo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?

A

-print0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

changes quota for specific user

A

edquota

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

Which top leve system directory is used for files and data that change regularly while the system is running and are to be kept between reboots

A

/var

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

commands can be used to determine how long the system has been running

A

uptime

top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

What is true regarding the command
ls > files
if files does not exist?

A

files is created and contains the output of ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

Which of the following files, located in a user home directory, contains the Bash history?

A

.bash_history

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
78
Q

Bash env var defines in which file the user history is stored when exiting a Bash process

A

HISTFILE

79
Q

wildcards will match the following filenames?
ttyS0 ttyS1 ttyS2

A

tty?[0-5]

tty[A-Z][012]

80
Q

displays the contents of a gzip compressed tar archive?

A

tar ztf archive.tgz

81
Q

following command prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

A

cut -d : -f 1,4 /etc/passwd

82
Q

regular expressions represents a single upper-case letter?

A

[A-Z]

83
Q

Which command is used to start another command with a given nice level?

A

nice

84
Q

Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

A

grep -E ‘:08[0-9]+:[0-9]+’loga.log

85
Q

Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition?

A

LABEL

UUID

86
Q

A yum repository can declare sets of related packages. Which yum command installs all packages belonging to the group admintools?

A

yum groupinstall admintools

87
Q

FILL BLANK -
What directory contains configuration files for additional yum repositories? (Specify the full path to the directory.)

A

/etc/yum.conf

88
Q

Which 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?

A

grub-install /dev/sda

89
Q

What option to the yum command will update the entire system

A

yum update

yum upgrade

90
Q

files are found in the /boot/ file system?

A

Linux kernel images

systemd target and service units

91
Q

Which file defines the network locations from where the Debian package manager downloads software packages?

A

/etc/apt/sources.list

92
Q

When removing a package on a system using dpkg package management, which dpkg option ensures configuration files are removed as well?

A

–purge

93
Q

Which of the following statements are correct when comparing Linux containers with traditional virtual machines (e.g. LXC vs. KVM)? (Choose three.)

A

Containers are a lightweight virtualization method where the kernel controls process isolation and resource management.

Fully virtualized machines can run any operating system for a specific hardware architecture within the virtual machine.

The guest environment for fully virtualized machines is created by a hypervisor which provides virtual and emulated hardware devices.

94
Q

The installation of a local Debian package failed due to unsatisfied dependencies. Which of the following commands installs missing dependencies and completes the interrupted package installation?

A

apt-get install -f

95
Q

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

A

rpm –query –all

96
Q

An admin has issued following cmd

grub-install –root-directory=/custom-grub /dev/sda

In which directory will new config files be found

A

/custom-grub/boot/grub/

97
Q

commands are valid in the GRUB 2 configuration file?

A

menuentry

insmod

98
Q

World-writeable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem

A

/var/tmp

tmp

99
Q

purpose of the ldd command?

A

It lists which shared libraries a binary needs to run.eeds to run.

100
Q

What can the Logical Volume Manager (LVM) be used for?

A

create snapshots

dynamically change the size of logical volumes

dynamically create or delete logical volumes

101
Q

main differences between GPT and MBR partition tables regarding maximum number and size of partitions?

A

GPT - By Default
128 Partitions
Partition sizes of 9.4 ZB (1 billion terrabytes)

MBR - by default
4 Partitions
partition size of 2.2 TB

102
Q

A 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? (Choose two.)

A

The old backups can be moved to slow backup media, such as tapes, while still serving as hard link target in new backups.

The backup consumes less space because the hard links point to the same data on disk instead of storing redundant copies.

103
Q

FILL BLANK -
Which file from the /proc/ file system contains a list of all currently mounted devices? (Specify the full name of the file, including path.)

A

/proc/mounts

104
Q

How many fields are in a syntactically correct line of /etc/fstab?

A

6

105
Q

Running chmod 640 filea.txt as a regular user doesnt update filea.txts permission. What might be a reason why chmod cannot modify the permissions?

A

filea.txt is owned by another user and a regular user cannot change the permissions of another user’s file.

filea.txt is a symbolic link whose permissions are a fixed value which cannot be charged.

106
Q

After modifying GNU GRUB’s config files what command must be run for changes to take effect?

A

No actions required.

107
Q

What is the difference between the –remove and the –purge action with the dpkg command

A

–remove - removes the program

–purge - removes the config files

108
Q

Which of the following Linux filesystems preallocate a fixed number of inodes when creating a new filesystem instead of generating them as needed? (Choose two.)

A

ext3

ext2

109
Q

Which of the following commands sets the SetUID permission on the executable /bin/foo?

A

chmod 4755 /bin/foo

110
Q

commands to set the sticky bit for directory /tmp

A

chmod +t /tmp

chmod 1775 /tmp

111
Q

Command makes /bin/foo executable by everyone but writable only by its owner

A

chmod u=rwx,go=rx /bin/foo

112
Q

Which of the following commands can be used to display the inode number of a given file? (Choose two.)

A

ls

stat

113
Q

settings for umask ensures that new files have the default permissions -rw-r—–?

A

0027

114
Q

permissions -rwSr-xr-x mean for a binary file when it is executed as a command

A

The execute flag is not set for the owner. Therefore the SetUID flag is ignored.

115
Q

Which command will display messages from the kernel that were output during the normal boot sequence?

A

dmesg

/bin/dmesg

116
Q

After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed?

A

By running xfs_repair on the file system

117
Q

What command overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it

A

dd if=/dev/zero of=/dev/sda bs=440 count=1

118
Q

command can be used to create a new file that is 100kB in size

A

dd

119
Q

used to locate programs and their corresponding man pages and config files

A

wheris

120
Q

device file name for second partition on the only SCSI drive

A

/dev/sda2

121
Q

Which of the following properties of an existing file changes when a hard link pointing to that file is created?

A

link count

122
Q

FILL BLANK -
Following 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 users on the system? (Specify the full path to the directory.)

A

/usr/local/bin/

123
Q

Which of the following commands show how the shell handles a specific command?

A

type

124
Q

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

A

?

125
Q

Regular expression that can be used for the beginning of a line

A
126
Q

commands displays the manual page command from section 1?

A

man 1 command

127
Q

commands creates or, in case it already exists, overwrites a file called data with the output of ls?

A

ls > data

128
Q

commands is used to change options and positional parameters within a running Bash shell?

A

set

129
Q

commands display the IDs of all processes owned by root?

A

pgrep -u root

pgrep -U 0

130
Q

Which of the following sequences in the vi editor saves the opened document and exits the editor?

A

Esc :wq

Esc ZZ

131
Q

effect of the -v option for the egrep command?

A

It only outputs non-matching lines

132
Q

show the complete path of an executable file that the current shell would execute when starting a command without specifying its complete path?

A

which

type

133
Q

signals is sent to a process when the key combination Ctrl+Z is pressed on the keyboard

A

SIGSTOP

134
Q

What is the output when the regular expression s/[ABC] [abc]/xx/ is applied to the following string?

ABCabc -

A

xxxxxx

135
Q

print the current working directory when using a Bash shell?

A

echo ${PWD}

pwd

136
Q

cmd used to download RPM package kernel without installing it

A

yumdownloader kernel

137
Q

outputs test to the shell?

A

cat «EOT test EOT

138
Q

What is the default nice level when a process is started using the nice command?

A

10

139
Q

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

A

rmdir ~/\dir

140
Q

can perform searches on file contents using regular expressions?

A

grep

141
Q

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

A

-maxdepth

142
Q

determine a files format by using a definition dbase file that contains info about all common file types

A

file

143
Q

generates a list of user names from /etc/passwd along with their login shell?

A

cut -d: -f1,7 /etc/passwd

144
Q

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?

A

Only texts.tar and texts.tgz

145
Q

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 41 or 2yj.

146
Q

Which of the following statements is correct for a command ending with an & character?

A

The command is run in background of the current shell.

147
Q

reads a file and creates separate chunks of a given size from the file contents?

A

split

148
Q

What is the purpose of the xargs command?

A

It reads standard input (STDIN) and builds up command lines to execute.

149
Q

Which command displays a list of all background tasks running in the current shell?

A

jobs

150
Q

Which command is used to change the priority of an already running process?

A

renice

151
Q

standard output to standard error.

A

ls >&2

152
Q

Init systems used with Linux

A

systemd

Upstart

SysV init

153
Q

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?

A

Investigating the file /var/log on the computers hard disk for possible errors.

154
Q

Where is the bootloader stored on the hard disk of a UEFI system?

A

On the EFI System Partition (ESP).

155
Q

What is true regarding UEFI firmware

A

It can use and read certain file systems

It is stored in a special area within the GPT metatada

156
Q

examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file

A

root*can?do-this.{txt,odt}

r[oOoO]t-can-do*.txt

{root,user,admin}-can-??-this.txt

157
Q

What statements are correct about the initial RAM disk involved in the boot process of Linux?

A

An initramfs is a compressed file system archive, which can be unpacked to examine its contents.

After a successful boot, the initramfs contents are available in /run/initramfs/.

158
Q

commands loads a kernel module along with any required dependency modules?

A

modprobe

159
Q

kernel command line changes the systemd boot target to resue.target instead of default target.

A

systemd.unit=rescue.target

160
Q

The USB defice filesystem can be found under /proc/____/usb/

A

bus

161
Q

You suspect that a new eithernet card by be conflicting with another device. Which file should you check within the /proc tree to learn which IRQs are being used by which kernel drivers

A

interrupts

/proc/interrupts

162
Q

What information can the lspci command display about the system hardware?

A

Device IRQ settings

PCI bus speed

Device vendor identification

163
Q

Which System V init configuration file is commonly used to set the default run level?

A

/etc/inittab

164
Q

Which run levels should never be declared as the default run level when using SysV init?

A

0 and 6

165
Q

You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. What command would disconnect users and allow you to safely execute maintenance tasks.

A

init 1

telinit 1

166
Q

command instructs SysVinit to reload its config file

A

telinit q

167
Q

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?

A

S02apache2 is run when runlevel 2 is entered.

K01apache2 is never run because K indicates a deactivated service.

168
Q

what command will write a message to the terminals of all logged in users.

A

wall

169
Q

Which SysV init comfig file should be modified to disable the ctrl-alt-del key

A

/etc/inittab

170
Q

The message “Hard Disk Error” is displayed on the screen during Stage 1 of the GRUB boot process - what does this inidicate.

A

The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk.

171
Q

Which command will disable swapping on a device

A

swapoff

sbin/swapoff

172
Q

what does mount -a do

A

ensures all file systems listed with option auto in /etc/fstab are mounted.

173
Q

option in GRUB Legacy config file to define the amount of time that GRUB menu will be shown to user

A

timeout

174
Q

Signal sent by the kill command by default

A

SIGTERM (15)

175
Q

To what env var will you assign or append a value if you need to tell the dynamic linker in a build directory for some of a program’s shared libraries

A

LD_LIBRARY_PATH

176
Q

shell command makes already defined TEST visible to new child processes

A

export TEST

177
Q

RPM command outputs name of the package that supplied /etc/exports?

A

/etc/exports

178
Q

Env var overrides or extends the list of directories holding shared libraries.

A

LD_LIBRARY_PATH

179
Q

What command displays the current disk space usage for all mounted file systems

A

du

180
Q

When using rpm –verify to check files created during the install of RPM package what is taken into consideration

A

Timestamps

MD5 Checksums

File sizes

181
Q

file in users home directory contains Bash history

A

.bash_histfile

182
Q

commands redirects the output of ls to standard error?

A

ls >&2

183
Q

command changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?

A

tr -d ‘\r’ < userlist.txt > newlist.txt

184
Q

Which command uninstalls a package but keeps its config files in case the package is re-installed

A

dpkg -r pkgname

185
Q

apt-get subcommand installs the newest versions of all currently installed packages

A

update

186
Q

Which of the following are valid stream redirection operators with Bash

A

<

2>&1

187
Q

When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces

A

-print0

188
Q

Which of the following commands installs GRUB 2 into the master boot record on the third hard disk

A

grub-install /dev/sdc

189
Q

in bash inserting 2>&1 after a command redirects

A

standard output to standard error

190
Q

which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters.

A

ex2

191
Q

Where does the BIOS search for a bootloader?

A

On all connected storage media in the defined boot device order.

192
Q

What is the purpose of the Filesystem Hierarchy Standard

A

It is a distribution neutral description of locations of files and directroies.

193
Q

Which of the following commands converts spaces in a file to tab characters and prints the result to standard output

A

unexpand

194
Q
A