Topic5: New Questions Mix Flashcards
Abuelas House on Atlantic Avenue
1: Stair Landing
file name c.txt be created with same indode number as a.txt
ln a.txt c.txt
2: Door to Julios Room
output displayed when user fred executes echo ‘fred $USER’
fred fred
3: Julios Room Closet
files exist in standard GRUB 2 install.
/boot/grub/i386-pc/1vm.mod
/boot/grub/linux/vmlinuz
4: Julios Room Bed
faulty kernel module causing issues with nic card - what action ensures that module is not loaded automatically when system boots
adding blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf
5: Julios Room Dresser
command installs GRUB 2 into MBR on third hard disk
grub-install /dev/sdc
6: Julios Room Radiator
command installs all packages with name ending with string foo
zypper install “*foo”
7: Abuela’s bedroom windows
cmd prints list of usernames (1st column) and primary group (4th column) from /etc/password file
cut -d: -f 1,4 /etc/passwd
8: Abuelas Room bed
true when a file system is not listed in /etc/fstab nor known to system and is mounted manually
cmd systemctl mountsync can be used to create a mount unit based on the existing mount.
9: Abuela Room Sowing Machine
directories on 64 bit Linux system typically contain shared libraries
/usr/lib64/
/lib64/
10: Abuela’s Room Chairs
cmd must be entered before exiting vi to save the current file as filea.txt
:w filea.txt
11: Abuelas Room Bureau
program runs a command in specific intervals and refreshes the display of the program’s output
watch
12: Abuelas Room Mirror
true about boot sequence of PC using BIOS
some parts of boot process configured from BIOS
BIOS initiates boot process after turning the computer on
13: Middle Room Closet
given loga.log with timestamps of the format DD/MM/YYY:hh:mm:ss - which command filters out all log entries in the time period between 8:00 am and 8:59 am
grep -E ‘:08:[0-9]+:[0-9]+’ loga.log
14: Middle Room Liquor Cabinet
true regarding the command ls > files if it does not exist
The files is created and contains the output of ls
15: Middle Room Couch
contained on EFI System Partition
First Stage Boot Loader
16: Middle Room Otoman
when is content of Kernel Ring Buffer reset
kernel ring buffer is explicitly reset using the command dmesg –clear
When the system is shut down or rebooted
17: Middle Room Desk
when redirecting output of find to xargs cmd what option to find is useful if filename contains spaces
-print0
18: Kitchen Counters
first program the Linux kernel starts at boot time when using System V init
/sbin/init
19: Kitchen Table
redirection operators within Bash
<
2>&1
20: Kitchen Chairs
command lists the dependencies of the RPM packages file foo.rpm
rpm -qpR foo.rpm
21: Kitchen Windows
apt-get subcommands install newest versions of all currently installed packages
update
22: Fire Escape
displays current disk usage for all mounted file systems
du
23: Kitchen Radiators
cmd uninstalls a package but keeps is config files in case package is reinstalled
dpkg -r pkgname
24: Bathroom Cabinet
cmd mount –bind do
makes contents of one directory available in another directory
25: Bathroom Tub
default percentage of reserved space for root user on new ext4 filesystems
5%
26: Bathroom Shower Head
daemon handles power management envents on linux system
acpid
27: Bathroom Toilet
consider directory
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
cmd ensures new files created with directory sales are owned by the group sales
chgrp -p sales sales
chmod 2775 sales
28: Bathroom Sink
cmd displays path to executable file that would be executed when cmd foo is invoked
lsattr foo
29: Kitchen Oven
given input stream
txt1.txt
atxt.txt
txtB.txt
which reg expressions turns input stream into the following output stream
txt1.bak.txt
atxt.bak.txt
txtB.bak.txt
s/txt/bak.txt/
30: Kitchen Microven
cmd changes all CR-LF breaks in text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt
tr -d ‘\r’ < userlist.txt > newlist.txt
32: Kitchen Sink
normal mode invi what character can be used to begin a reverse search of the text
?
33: Kitchen Cabinet under sink
chown cmd will change ownership to dave and the group to staff on a file named data.txt
chown dave:staff data.txt
33: Kitchen Santaria Display
in order to display all currently mounted filesystems which commands could be used
cat /proc/self/mounts
mount
34: Kitchen Small Table (next to door)
what does the cmd mount -a do
mounts all filesystems listed in /etc/fstab that have the option to auto set
34: Kitchen Door to Landing
in vi editor what cmd will copy but not paste from current line at the cursor and the following 16 lines (17 total)
17yy
35: Landing Proper outside of Kitchen
cmd show definition of a given shell command
type
36: Bannister
cmds used to search for executable file foo when it has been placed in a directory not included in $PATH
find
37: Steps
cmd print current working directory when using Bash shell
pwd
38: First floor landing
following filesystem hierarch standard 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
/usr/local/bin/
39: Front Door
cmd changes ownership of file.txt to the user dan and the group staff
chown dan:staff file.tt
40: Iron Grated Door
State describes a diff between GNU GRUB Legacy and GRUB 2
Partition numbers start at 0 in Grub Legacy and numbers start at 1 for Grub2
41: Taxi Stand
cmd used to start another command with a given nice level
nice
42: Akeos hat Store
43: