Linux 103 - Chapter 3 Flashcards
What statement is correct when talking about /proc?
All changes to files in /proc/ are immediately recognized by the kernel.
What 3 pieces of information can the lspci command display about the system hardware?
Device IRQ settings, PCI bus speed, & device vendor identification
What command updates the linker cache of the shared libraries?
ldconfig
What file should be edited to select the network locations from which Debian installation package files are loaded?
/etc/apt/sources.list
What command will generate a list of user names from /etc/passwd along with their login shell?
cut -d: -f1, 7 /etc/passwd
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
What command kills the process with the PID 123 but allows the process to “clean up” before exiting?
kill -TERM 123
What is the device file name for the second partition on a SCSI drive?
/dev/sda2
In order to display all currently mounted filesystems, which of the following commands could be used? (Two answers)
cat /proc/xxxx/mounts
mount
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
What type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
ext2
How many fields are in a syntactically correct line of /etc/fstab?
6
What two commands create an ext3 filesystem on /dev/sdb1?
/sbin/mke2fs -j /dev/sdb1
/sbin/mkfs -t ext3 /dev/sdb1
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.
Which command will disable swapping on a device? (Specify ONLY the commend without any path or parameters.)
swapoff