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
What does this command do: mount -a
It mounts all filesystems listed in /etc/fstab which have the option auto set
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
Which command displays a list of all background tasks running in the current shell?
jobs
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
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
What statement is correct regarding the command: foo 1> bar?
The stdout from the command foo overwrites the file bar.
What command will send output from the program myapp to both standard output and the file file1.log?
myapp | tee file1.log
After modifying GNU GRUB’s configuration file, which command must be run for the changes to take effect?
No action is required?
Which system administration command can you use to update ld.so.cache after the installation of new shared libraries?
ldconfig
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