module 2 Flashcards
When you’re configuring your GRUB configuration file, which of the following points to /dev/sda2 on a SATA hard drive?
hd0,1
Which partition is used for virtual memory by a Linux system?
swap
Which command can be used to switch runlevels while the system is running?
init
Where are the init scripts stored on an older Fedora Linux system?
/etc/rc.d/init.d
You need to generate a listing of files and directories within the /var directory, including files in subdirectories. Which command will do this?
ls -R /var
Where does the Linux kernel reside?
/boot
Which of the following GRUB configuration file directives points to the partition on the hard drive where /boot resides?
root
Which locale environment variable configures your default character encoding?
LC_CTYPE
The ntp daemon on your Linux system is currently configured to run in runlevels 3 and 5. You want to remove all kill and start scripts for the ntp daemon in the various rcx.d directories. Which command will do this?
insserv -r ntp
You need to copy the Documents directory within your user’s home directory to the /tmp directory. Given that Documents has files and subdirectories within it, which is the correct command to do this?
cp -R ~/Documents /tmp
If your system has 1GB of RAM installed, how big should your swap partition be?
Depends on what the system will be used for
Which runlevel uses a graphical user interface by default?
5
Which file is used to set the default runlevel of a Linux system that uses the init daemon?
/etc/inittab
The following link files are located in the /etc/init.d/rc3.d directory. If the system is configured to boot into runlevel 3 by default, which file is run by init before any of the others?
S05cifs
You need to delete the Temp directory within your user’s home directory. Given that Temp has files in it, which is the best command to do this?
rm -r ~/temp
Which configuration parameter in /etc/default/grub specifies how long the user has to make a menu selection from the GRUB menu before the default operating system is booted?
GRUB_TIMEOUT
Which directory does the ~ character represent when used with file system commands?
The current user’s home directory
Which directory contains file system management utilities such as cp and rm?
/bin
Which GRUB2 configuration script file can detect a Windows installation on the same hard disk as Linux?
30_os-prober
Which file is used to configure the GRUB bootloader?
/boot/grub/menu.list
You need to find a file named myfile.txt somewhere in your Linux file system. Which is the correct command to do this?
find / -name “myfile.txt”
You need to find all entries in your /var/log/messages file that contain the term “scsi.” Which is the correct command to do this?
grep scsi /var/log/messages
If you are using standard time in the U.S. Central Time zone and UTC is 5:00 P.M., what is the local time?
11:00 A.M.
Which locale variable overrides all other locale variables?
LC_ALL
Which locale value specifies French Canadian using Unicode encoding?
fr_CA.UTF-8
Which directory is a pseudo–file system that is dynamically created when it is accessed?
/proc
Which of the following is a properly stated goal in a needs assessment?
The new Linux system will provide a network database to increase the documentation team’s productivity by an anticipated 20%.
Which environment variable can be used to set the current time zone on a Linux system?
TZ
Which directive in the /etc/sysconfig/clock file configures the time zone a Linux system will use?
TIMEZONE
Which of the following configuration files is not used by the GRUB2 bootloader?
/boot/grub/menu.lst