Linux 103 - Chapter 3 Flashcards

1
Q

What statement is correct when talking 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
2
Q

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

A

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

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

What command updates the linker cache of the shared libraries?

A

ldconfig

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

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

A

/etc/apt/sources.list

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

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

A

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

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

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

A

kill -TERM 123

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

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

A

/dev/sda2

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

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

A

cat /proc/xxxx/mounts

mount

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

Which 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
11
Q

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

A

ext2

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

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

A

6

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

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

A

/sbin/mke2fs -j /dev/sdb1

/sbin/mkfs -t ext3 /dev/sdb1

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

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

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

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

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

A

swapoff

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

What does this command do: mount -a

A

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

17
Q

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

A

SIGHUP or HUP or 1

18
Q

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

A

jobs

19
Q

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

A

mkdir OR /usr/bin/mkdir

20
Q

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?

A

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

21
Q

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

A

The stdout from the command foo overwrites the file bar.

22
Q

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

A

myapp | tee file1.log

23
Q

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

A

No action is required?

24
Q

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

A

ldconfig

25
Q

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?

A

user