Linux 103 - Chapter 3 Flashcards Preview

Linux 103 > Linux 103 - Chapter 3 > Flashcards

Flashcards in Linux 103 - Chapter 3 Deck (25):
1

What statement is correct when talking about /proc?

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

2

What 3 pieces of information can the lspci command display about the system hardware?

Device IRQ settings, PCI bus speed, & device vendor identification

3

What command updates the linker cache of the shared libraries?

ldconfig

4

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

/etc/apt/sources.list

5

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

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

6

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

19

7

What command kills the process with the PID 123 but allows the process to "clean up" before exiting?

kill -TERM 123

8

What is the device file name for the second partition on a SCSI drive?

/dev/sda2

9

In order to display all currently mounted filesystems, which of the following commands could be used? (Two answers)

cat /proc/xxxx/mounts
mount

10

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

tune2fs -i 200 /dev/sda1

11

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

ext2

12

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

6

13

What two commands create an ext3 filesystem on /dev/sdb1?

/sbin/mke2fs -j /dev/sdb1
/sbin/mkfs -t ext3 /dev/sdb1

14

After running the command: umount /mnt, the following error message is displayed:
umount: /mnt: device is busy
What is a common reason for this message?

A user has a file open in the /mnt directory.

15

Which command will disable swapping on a device? (Specify ONLY the commend without any path or parameters.)

swapoff

16

What does this command do: mount -a

It mounts all filesystems listed in /etc/fstab which have the option auto set

17

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?

killall -s ________ daemon

SIGHUP or HUP or 1

18

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

jobs

19

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

mkdir OR /usr/bin/mkdir

20

You are preparing a new set of shared libraries in /usr/local/applib and you have written and compiled some code that uses these libraries. You have already performed an ldconfig, however the system still cannot find the shared libraries. What is most likely the cause of this?

You forgot to put the library path in ld.so.conf

21

What statement is correct regarding the command: foo 1> bar?

The stdout from the command foo overwrites the file bar.

22

What command will send output from the program myapp to both standard output and the file file1.log?

myapp | tee file1.log

23

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

No action is required?

24

Which system administration command can you use to update ld.so.cache after the installation of new shared libraries?

ldconfig

25

To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line in /etc/fstab?

user