Topic5: New Questions Mix Flashcards

1
Q

Abuelas House on Atlantic Avenue

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

1: Stair Landing

file name c.txt be created with same indode number as a.txt

A

ln a.txt c.txt

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

2: Door to Julios Room

output displayed when user fred executes echo ‘fred $USER’

A

fred fred

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

3: Julios Room Closet

files exist in standard GRUB 2 install.

A

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

/boot/grub/linux/vmlinuz

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

4: Julios Room Bed

faulty kernel module causing issues with nic card - what action ensures that module is not loaded automatically when system boots

A

adding 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
6
Q

5: Julios Room Dresser

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

6: Julios Room Radiator

command installs all packages with name ending with string foo

A

zypper install “*foo”

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

7: Abuela’s bedroom windows

cmd prints list of usernames (1st column) and primary group (4th column) from /etc/password file

A

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

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

8: Abuelas Room bed

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

A

cmd 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

9: Abuela Room Sowing Machine

directories on 64 bit Linux system typically contain shared libraries

A

/usr/lib64/

/lib64/

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

10: Abuela’s Room Chairs

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

11: Abuelas Room Bureau

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

12: Abuelas Room Mirror

true about boot sequence of PC using BIOS

A

some parts of boot process configured from BIOS

BIOS initiates boot process after turning the computer on

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

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

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

14: Middle Room Liquor Cabinet

true regarding the command ls > files if it does not exist

A

The files is created and contains the output of ls

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

15: Middle Room Couch

contained on EFI System Partition

A

First Stage Boot Loader

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

16: Middle Room Otoman

when is content of Kernel Ring Buffer reset

A

kernel 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
18
Q

17: Middle Room Desk

when redirecting output of find to xargs cmd what option to find is useful if filename contains spaces

A

-print0

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

18: Kitchen Counters

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

A

/sbin/init

20
Q

19: Kitchen Table

redirection operators within Bash

21
Q

20: Kitchen Chairs

command lists the dependencies of the RPM packages file foo.rpm

A

rpm -qpR foo.rpm

22
Q

21: Kitchen Windows

apt-get subcommands install newest versions of all currently installed packages

23
Q

22: Fire Escape

displays current disk usage for all mounted file systems

24
Q

23: Kitchen Radiators

cmd uninstalls a package but keeps is config files in case package is reinstalled

A

dpkg -r pkgname

25
24: Bathroom Cabinet cmd mount --bind do
makes contents of one directory available in another directory
26
25: Bathroom Tub default percentage of reserved space for root user on new ext4 filesystems
5%
27
26: Bathroom Shower Head daemon handles power management envents on linux system
acpid
28
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
29
28: Bathroom Sink cmd displays path to executable file that would be executed when cmd foo is invoked
lsattr foo
30
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/
31
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
32: Kitchen Sink normal mode invi what character can be used to begin a reverse search of the text
?
33
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
34
33: Kitchen Santaria Display in order to display all currently mounted filesystems which commands could be used
cat /proc/self/mounts mount
35
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
36
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
37
35: Landing Proper outside of Kitchen cmd show definition of a given shell command
type
38
36: Bannister cmds used to search for executable file foo when it has been placed in a directory not included in $PATH
find
39
37: Steps cmd print current working directory when using Bash shell
pwd
40
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/
41
39: Front Door cmd changes ownership of file.txt to the user dan and the group staff
chown dan:staff file.tt
42
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
43
41: Taxi Stand cmd used to start another command with a given nice level
nice
44
42: Akeos hat Store
45
43: