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