LPI 101-500 LPIC-1 Linux Administrator Exam Flashcards

1
Q

what file in the users home directory contains Bash history

A

.bash_histfile

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

a debian package creates several files during its installation. What command searches for packages owning /etc/debian_version?

A

find /etc/debian_version -dpkg

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

what expression represents a single upper-case letter

A

[A-Z]

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

the command dbmaint was used to run in the background. However, dbmaint is terminated after logging out of the system. What alt dbmaint invocation lets it continue to run even when the user running the program logs out

A

bg dbmaint

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

what umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and not accessible at all for everyone else.

A

0027

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

yum repository configs can include these

A

$basearch or $releasever

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

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

if /etc/yum_repose.d contains files then this file will be ignored

A

/etc/yum_conf

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

Wildcard characters will match following file names

ttyS0

ttyS1

ttyS2

A

tty?[0-5]

tty[A-Z][012]

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

what is a valid reason to not use hard links

A

because they are not available on all linux systems and filesystems like ext4 do not support them

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

vi command deletes two lines, the current and following line

A

2dd

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

command list all files and directories within the /tmp/ directory and its subdirs that are owned by root user

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
12
Q

this can use and read certain file systems and is stored in a special area within the GPT metadata

A

UEFI firmware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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
14
Q

command redirects the output of ls to standard error

A

ls > &2

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

what should be changed when a linux vm is cloned

A

permissions of /root/

SSH host keys

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

what command changes all CR-LF line breaks in the text file userlist.txt to Lunux standard LF breaks and stores the result in lewlist.txt

A

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

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

given the following input stream

txt1.txt

atx.txt

txB.txt

what regular expression turns this input stream into the following output

tx1.bak.txt

atxt.bak.txt

txB.bak.txt

A

s/txt/bak.txt/

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

command 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
19
Q

considering this directory

drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales

what command ensures that files created wihin the directory sales are owned by the group sales

A

chgrp -p sales sales

chmod 2775 sales

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

daemon that handles power management events on linux system

A

acpid

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

default % of reserve space for root user on new ext4 filesystems

A

5%

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

what does the mount –bind do

A

makes contents of one directory available in another directory

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

command uninstalls a package but keeps its config in case the package is reinstalled

A

dpkg -r pkgname

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

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

A

du

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

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

A

update

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

lists 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
27
Q

valid stream redirection operators in Bash

A

<

2>&1

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

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
29
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
30
Q

when is content of kernel ring buffer reset

A

using dmesg –clear

when system is shut down or rebooted

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

what is contained on the EFI System Partition

A

first stage boot loader

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

what is true about this command

ls > files

if it does not exist

A

the file is created and contains the output of ls

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

file loga.log with timestaps of format DD/MM/YYY:hh:mm:ss

what 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

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

what happens in boot sequence of PC using BIOS

A

some parts of the boot proccess can be configured from the BIOS and 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
35
Q

program runs a command in specific intervals and refreshes the display of the program’s output

A

watch

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

command must be entered before exiting vi to save the files as filea.txt

A

:w filea.txt

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

directories on 64 bit linux system typically contain shared libs

A

~/.lib64/

/lib64/

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

true when a file system that is neither listed in /etc/fstab nor known to system is mounted manually

A

cmd systemctl mountsnc 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
39
Q

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

A

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

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

cmd 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
41
Q

cmd installs GRUB 2 into MBR on third hard disk

A

grub-install /dev/sdc

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

a faulty kernel module is causing issues with a nic so what action ensures that the module is not loaded automatically when the system boots

A

adding a black 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
43
Q

exists in standard GRUB 2 install

A

/boot/grub/i386-pc/1vm.mod

/boot/grub/grub.cfg

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

output displayed when user fred exececutes echo fred $USER

A

fred fred

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

cmd ls -i

how would new file named c.txt be created with 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
46
Q

in bash inserting 2>&1 after a command redirects

A

standard output to standard error

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

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

A

ex2

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

after moving data to new filesystem how can the former path of the data be kept intact in order to avoid reconfig of existing apps

A

by create symbolic link from old to new path of data and by mounting new filesystem on the original path of the data

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

cmd used to display inode number of given file

A

ls

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

this system config file is commonly used to set default runlevel

A

/etc/inittab

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

cmd enables setuid (suid) permission on the executable /bin/foo

A

chmod 4755 /bin/foo

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

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

A

xargs

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

where does BIOS search for bootloader

A

on all connected storage media in the defined boot device order

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

purpose of the Filesystem Hierarchy Standard

FHS

A

it is a distribution neutral description of locations of files and directories

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

pressin Ctrl-C combination on the kb while cmd is executing in the foreground send this signal

A

2(SIGINT)

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

modes of VI editor

A

insert mode

command mode

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

cmd uninstall a package but leave its config files in case the pkg is re-installed

A

dpkg -r pkgname

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

permission and ownership of the file /etc/passwd

A

-rw-r–r–1 rootroot531 Jun 5 22:45 /etc/passwd

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

cmd makes /bin/foo executable by everyone but writeable only by its owner

A

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

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

when using regular expressions what character match beginning of a line

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

cmd changes nice level of running process

A

renice

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

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

A

whereis

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

device file name for second partition on the only SCSI drive

A

/dev/sda2

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

cmd instructs SysVinit to reload its config file

A

telinit q

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

program updates database used by locate command

A

updatedb

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

default signal send by kill cmd

A

SIGTERM(15)

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

cmd line creates on incase it already exists, overwrites a file called data with the output of ls

A

ls > data

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

utility would be used to chang how often 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
69
Q

cmd changes the number of days before 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
70
Q

cmd converts spaces in 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
71
Q

file from /proc file system contains list of all currently mounted devices

A

mounts

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

cmd line ending with a & character

A

the command is run in background of the current shell

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

apt-get cmd will install newest version of all currently installed packages

A

dist-upgrade

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

settings for umask ensures that new files have the default permissions

rw-r—–

A

0027

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

shell commands makes already defined var TEST visible to new child processes

A

export TEST

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

set sticky bit for the directory /tmp

A

chmod +t /tmp

chmod 1775 /tmp

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

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

A

grub-install /dev/sda

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

cmd changes metadata and option for ext3 filesystem

A

tune2fs

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

how many fields are in a sytactically correct line of /etc/fstab

A

6

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

why does creating a hard link to an ordinary file return an error

A

the source and target are on different filesystems

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

cmd 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
82
Q

file in /proc describes IRQs that are used by various kernel drivers

A

interrupts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
83
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
84
Q

correct order in which the components of system boot process are started

A

BIOS, bootloader, kernel, init system

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

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

A

the command will be executed with the effective rights of the owner and group

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

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

A

mount -a

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

cmd loads a kernel module along with any required dependency modules

A

modprobe

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

when piping output of find to the xargs command what option to find is useful if the filenames have spaces in them

A

-print0

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

cmd will change quota for specific user

A

edquota

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

cmd changes all occurrences of word “bob” in a file data to “Bob” and prints the result to standard output

A

sed ‘s/b0b/Bob/g’ data

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

filesystems used on linux root partitions

A

ext3

swap

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

limitation of cut cmd

A

it cannot reorder fields

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

permissions belong to symbolic link

A

lrwxrwxrwz

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

option of the tee cmd will cause the output to be contatenated on the end of the output file instead of overwriting the existing file contents

A

-a

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

cmd creates a swap space on a block device or file

A

mkswap

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

cmd reads and displays the current contents of the Kernel Ring Buffer on the cmd line

A

dmesg

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

cmd prints a list of available package updates when using RPM-based package management

A

dpkg check-update

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

after creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem

so what is resulting situation

A

foo would be removed while bar would remain accessible

99
Q

cmd will print imprtant system info such as kernel version and machine hw architecture

A

uname

100
Q

partition type used for linux swap spaces when partitioning hard disk drives

A

82

101
Q

cmd creates ext3 filesystem on /dev/sdb1

A

/sbin/mke2fs -j /dev/sdb1

/sbin/mkfs -t ext3 /dev/sdb1

102
Q

what info is changed on a file when a hard link pointing to that file is created

A

link count

103
Q

linux filesystems preallocates a fixed number of inodes at the filesystem’s make/creation time and does NOT generate them as needed.

A

ext2

ext3

104
Q

how can the list of files that would be installed by RPM package file file apache-xml.rpm be previewed

A

rpm -qpl apache-xml.rpm

105
Q

cmd used to query info about available packages on Debian system

A

apt-cache

106
Q

have same permissions and owner

share same inode

must be on same filesystem

A

hard linked files

107
Q

cmd used to create an initialize the files used to store quota info

A

quotacheck

108
Q

cmd used to start another cmd with given nice level

A

nice

109
Q

statement describes a diff between GNU GRUB Legacy and GRUB 2

A

partition numbers start at 0 in GRUB Legacy

partition numbers start at 1 in GRUB 2

110
Q

cmd changes ownership of file.txt to the user dan and the group staff.

A

chown dan:staff file.txt

111
Q

Filesystem Hierarchcy Standard (FHS)

where should binaries that have been compiled by the sys admin be placed in order to be made available to all users on the system

A

/usr/local/bin/

112
Q

prints working directory when using Bash shell

A

pwd

echo “${pwd}”

113
Q

cmd used to search for the executable file foo when it has been placed in a directory not included in $PATH

A

query

114
Q

process ID number of the init proccess on a SysV init based system

A

1

115
Q

cmd shows the definition of a given shell cmd

A

type

116
Q

vi

cmd will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines in total)

A

17yy

117
Q

cmd mounts all filesystems listed in /etc/fstab that have the option auto set

A

mount -a

118
Q

to display all mounted filesystems what cmds could be used

A

cat /proc/self/mounts

mount

119
Q

cmd will change the ownership to dave and the group to staff on a file named data.txt

A

chown dave:staff data.txt

120
Q

VI

cmd will change all CR-LF pairs in an imported text file, userlis.txt to Linux standard LF characters and store it as newlist.txt

A

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

121
Q

option must be passed to a filesystem’s entry in /etc/fstab in order to mount the file system without root privileges

A

user

122
Q

instead of supplying an explicit device in /etc/fstab for mounting what options maby used to id the intended partition

A

LABEL

UUID

123
Q

cmd shows all shared libs required by a binary executable or another shared library

A

idd

124
Q

SysV init config file commonly used to set the default run level

A

inittab

125
Q

cmd will display inode usage of each mounted file system

A

df -i

126
Q

common cmds for file management

A

mv

cp

127
Q

in compliance with FHS in what directory are doc files found

A

/var/share/doc

128
Q

cmd will mount an already inserted CD-ROM in /dev/sr0 onto an existing directory /mnt/cdrom when issued with root priv

A

mount -t cdrom /dev/sr0 /mnt/cdrom

129
Q

cmd used to modify quota settings

A

edquota

130
Q

after running umount /mnt the following error is displayed

umount: /mnt: device is busy

what is the common reason for the message

A

a user has an open file in the /mnt directory

131
Q

umask

value will result in default access permissions of
600 (rw——-) for files
700 (rwx—–) for directories

A

0077

007

132
Q

you are trying to make a hard link into an ordinary file but it returns an error

A

the source and the target are on different filesystems

133
Q

VI

what happens when you issue the vi cmd without any parameters

A

vi starts in command mode and opens a new empty file

134
Q

cmd sets the Bah var named TEST with the content FOO

A

TEST=”FOO”

135
Q

from a bash shell which cmd directly executes 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

136
Q

cmd used in Linux env to create new env

A

mkdir /usr/bin/mkdir

137
Q

lists currently mounted devices

A

/etc/mtab file

138
Q

cmd kills the process with the PID 123 but allows the process to “clean up” before exiting

A

kill -TERM 123

139
Q

default action of the split cmd on an input file

A

breaks file into new files of 1,000 line pieces each

140
Q

cmd will generate a list of user names from /etc/passwd along with their login shell

A

cut -d: -f1.7 /etc/passws

141
Q

cmd used to continue background execution of a suspended cmd

A

bg

142
Q

regular expression

what does ? represent

A

match the prceeding qualifier zero or one times

143
Q

shell redirection will write standard output and standard error output to a file named filename

A

> filename 2>&1

144
Q

cmd displays the contents of the gzip compressed tar archive

A

tar ztf archive.tgz

145
Q

output of following cmd

echo “Hello World”| tr -d aeiou

A

Hll Wrld

146
Q

signal is missing from the following cmd that is commonly used to instruct a daemon to reinitilize itself including reading config files

A

HUP, SIGHUP,1

147
Q

given cmd line

echo “foo bar”| tee bar | cat

what output is created

A

foo bar

148
Q

valid stream redirection operators with Bash

A

<
«<
>

149
Q

cmd sends output form program myapp to both stdout and the file file1.log

A

myapp | tee file1.log

150
Q

vi

immediately after deleting 3 lines of text in and moving the cursor to a different line, which sing character cmd will insert the deleted content below the current line

A

p (lowercase)

151
Q

variable that defines the directories in which a bash shell searches for executable cmds

A

PATH

152
Q

cmd displays a list of all background tasks running in the current shell

A

jobs

153
Q

cmd will reduce all consecutive spaces down to a single space

A

tr -s ‘‘<a.txt> b.txt</a.txt>

154
Q

cmd 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

155
Q

when starting a program with nice cmd without any additional params what nice level is set for the resulting process

A

10

156
Q

when running the command

sed -e “s/a/b/” /tmp/file > /tmp/file

while /tmp/file contains data why is /tmp/file empty afterwards

A

when the shell establishes the redirection it overwrites the target file before the redirected cmd starts and opens it for reading.

157
Q

cmd moves and resumes in the background that last stopped shell job

A

bg

158
Q

VI

what is the diff between i and a cmds

A

i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.

159
Q

cmd used to change options and positional params for a running bash

A

set

160
Q

cmd will print the last 10 lines of a text file to the standard output

A

tail -n 10 filename

161
Q

purpose of the bash built-in export cmd

A

sets up env vars for apps

162
Q

why run a cmd in the background of your shell

A

cmd has to run immediately but the user needs to log out

163
Q

character added to the end of a cmd runs that cmd in the background as a child process of the current shell

A

&

164
Q

what can be said about the cmd

foo 1 > bar

A

stdout from cmd foo is appended to the file bar and the cmd foo receives its stding from the stdout of the cmd bar

165
Q

vi

saves opened document and exits the editor

A

esc ZZ

esc :wq!

166
Q

what is max niceness value that a regular user can assign to a process with the nice command when executing a new process

A

19

167
Q

nested directory structure

which find cmd would be used to restrict the cmd to searching down a particular number of subdirectories

A

-maxdepth

168
Q

nice -5/user/bin/prog

what can be said about this

A

/usr/bin/prog

executed with nice level of 5

169
Q

vi

while editing a file the file changes due to another process. without exiting vi how can the file be reopened for editing with the new content

A

:e

170
Q

default nice level when a process is started using the nice cmd

A

10

171
Q

cmd determines the type of a file by using a def db file that contains info about all common file types

A

file

172
Q

cmd prints all files and directories within the /tmp directory or its subdirectories that are also owned by user root

A

find /tmp -user root -print

find /tmp -user root

173
Q

cmd can be used to create a USB storage media from a disk image

A

dd

174
Q

in bash inserting 1>&2 after a command redirects it to

A

standard output to standard error

175
Q

VI

cmd will copy the current line into the vi buffer

A

yy

176
Q

what does the + symbol mean in the following grep regular expression

grep ‘^d[aei]+d$’ /usr/share/dict/words

A

match the preceeding character set ([aei]) one or more times

177
Q

cmd replaces each occurrence of ‘bob’ in the file letter with ‘Bob’ and writes the result to the file newletter

A

sed ‘s/bob/Bob/g’ letter > newletter

178
Q

cmd will NOT update the modify timestamp on the file /tmp/myfile.txt

A

file /tmp/myfile.txt

179
Q

which characters can be combined with a separator string in order to read from the current input source until the separator string that is on a separate line and without any trailing spaces is reached

A

«

180
Q

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

A

uptime

top

181
Q

cmd will print only the lines that do not end with a / in the file foo

A

grep -v ‘/$’ foo

182
Q

vi

how can cmds 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 4l or 2yj

183
Q

which following signals is sent to a process when the key combo CTRL+C is pressed on the kb

A

SIGINT

184
Q

user accidentally created the subdirectory \dir in his home directory so what cmd will remove it

A

rmdir ~/\dir

185
Q

which bash env var defines what file the user history is stored when exiting a bash proccess

A

HISTFILE

186
Q

file located in the home directory is used to store the Bash history

A

.bash_history

187
Q

in compliance with FHS which directories are man pages found

A

/usr/share/man

188
Q

what is the effect of the egrep cmd wthe -v option is used

A

it outputs only non-matching lines

189
Q

when using rpm –verify to check files created during the install of RPM packages what info is taken into consideration

A

Timestamps

MD5 checksums

File sizes

190
Q

env var overrides or extends the list of directories holding shared libraries

A

LD_LIBRARY_PATH

191
Q

RPM command will output the name of the package which supplied file /etc/exports

A

rpm -qf /etc/exports

192
Q

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

A

LD_LIBRARY_PATH

193
Q

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

A

timeout

194
Q

after modifying GNU GRUB’s config file, what cmd must be run for the changes to take effect

A

No action is required

195
Q

following cmd can be used to perform a full text search on all availalble packages on a Debian system

A

apt-cache

196
Q

you want to preview where the package file apache-xml.i386.rpm will install its files before install it so what cmd do you use

A

rpm -qpl apache-xml.i386.rpm

197
Q

cmd will ask config questions for a specified package just as if the package were being installed for the first time

A

reconfigure

198
Q

cmd 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

199
Q

to prevent users from being able to fill up the / partitions this directory should be on a separate partition if possible as it would be writeable

A

/tmp

tmp

200
Q

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

A

dpkg-reconfigure

201
Q

file should be edited to select the network locations from which Debian install package files are loaded

A

/etc/dpkg/dselect.cfg

202
Q

what is the name of the main config file for GNU GRUB

A

menu.lst

grub.conf

grub.cfg

203
Q

cmd lists the dependencies of a given dpkg package

A

apt-cache depends package

204
Q

when removing a package which of the following dpkg options will completely remove the files including config files

A

–purge

205
Q

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

A

upgrade

206
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

/tmp

tmp

/var/tmp

207
Q

an admin has issued the following cmd

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

in what directory will new config files be found

A

/custom-grub/boot/grub

208
Q

cmd lists all currently installed packages when using RPM package management

A

rpm –query –all

209
Q

cmd can be used to download the RPM package kernel without installing it

A

yumdownloader kernel

210
Q

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

A

/etc/yum.repos.d

211
Q

what is correct about mount points

A

every existing directory can be used as a mount point

212
Q

dynamically changes the size of logical volumes, creates snapshots and can dynamically create or delete logical volumes

A

Logical Volume Manager (LVM)

213
Q

option to the yum command will update the entire system

A

update

upgrade

214
Q

cmd will disable swapping on a device

A

swapoff

/sbin/swapoff

215
Q

dpkg cmd that removes programs

A

–remove

216
Q

dpkg cmd that removes config files

A

–purge

217
Q

which function key is used to start Save Mode in WIndows NT

A

Windows NT does not support Safe Mode

218
Q

cmd updates the linker cache of shared libraries

A

idconfig

219
Q

which top level 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

220
Q

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

A

apt-get update

221
Q

during system boot cycle what is the program that is run after the BIOS completes its task

A

bootloader

222
Q

what is true about /proc

A

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

223
Q

info stored within BIOS

A

Boot device order

H/W config

224
Q

you suspect that a new ethernet nic card might be conflicting with another device. what file should you check within /proc tree to learn which IRQs are being used by which kernel drivers

A

interrupts

/proc/interrupts

225
Q

USB device filesystems can be found und

A

/proc/bus/usb/

226
Q

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

A

systemd.unit=rescue.target

227
Q

your having some trouble with disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which cmd woud disconnect the users and allow you to safely execute maintenance tasks

A

telinit 1

228
Q

cmd reboots the system when using SysV init

A

shutdown -r now

telinit 6

229
Q

kernel parameter instructs the kernel to suppress most boot messages

A

quiet

230
Q

init systems used within Linux systems

A

systemd

Upstart

SysV init

231
Q

the message “Hard Disk Error” is displayed on the screen during Stage 1 of the GRUB boot process so what does that mean?

A

the next State cannot be read from the hard disk because GRUB was unable to determine the size and geometery of the disk

232
Q

SysV init config file should be modified to disable the ctrl-alt-delete key combo

A

/etc/inittab

233
Q

during a system boot cycle, what program is executed after the GIOS completes its tasks

A

bootloader

234
Q

first program that is usually started at boot time by the Linux kernel when using SysV init

A

/sbin/init

235
Q

cmd brings a system running SysV init into a state in which it is safe to perform maintenance tasks

A

init 1

telinit 1

236
Q

cmd to display message from the kernel that were output during the normal boot sequence

A

dmesg

/bin/dmesg

237
Q

how can additional rules for udev can be created

A

by adding them to /etc/udev/rules.d/

238
Q

filesystem of type tmpfs and is mounted by udev during system startup

A

the /dev/ directory

239
Q

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

A

0

6

240
Q

what does lspci command display about the system hw

A

Device IRQ settings

PCI bus speed

Device vendor identification

241
Q

cmd will write a msg to the terminals of all logged users

A

wall

242
Q

file in /proc filesystem lists params passed from the bootloader to the kernel

A

cmdline

/proc/cmdline

243
Q

cmd displays the contents of the Kernel Ring Buffer on the command line

A

dmest

/bin/dmesg

244
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 parmameter line