module 2 Flashcards

1
Q

When you’re configuring your GRUB configuration file, which of the following points to /dev/sda2 on a SATA hard drive?

A

hd0,1

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

Which partition is used for virtual memory by a Linux system?

A

swap

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

Which command can be used to switch runlevels while the system is running?

A

init

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

Where are the init scripts stored on an older Fedora Linux system?

A

/etc/rc.d/init.d

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

You need to generate a listing of files and directories within the /var directory, including files in subdirectories. Which command will do this?

A

ls -R /var

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

Where does the Linux kernel reside?

A

/boot

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

Which of the following GRUB configuration file directives points to the partition on the hard drive where /boot resides?

A

root

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

Which locale environment variable configures your default character encoding?

A

LC_CTYPE

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

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?

A

insserv -r ntp

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

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?

A

cp -R ~/Documents /tmp

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

If your system has 1GB of RAM installed, how big should your swap partition be?

A

Depends on what the system will be used for

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

Which runlevel uses a graphical user interface by default?

A

5

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

Which file is used to set the default runlevel of a Linux system that uses the init daemon?

A

/etc/inittab

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

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?

A

S05cifs

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

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?

A

rm -r ~/temp

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

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?

A

GRUB_TIMEOUT

17
Q

Which directory does the ~ character represent when used with file system commands?

A

The current user’s home directory

18
Q

Which directory contains file system management utilities such as cp and rm?

A

/bin

19
Q

Which GRUB2 configuration script file can detect a Windows installation on the same hard disk as Linux?

A

30_os-prober

20
Q

Which file is used to configure the GRUB bootloader?

A

/boot/grub/menu.list

21
Q

You need to find a file named myfile.txt somewhere in your Linux file system. Which is the correct command to do this?

A

find / -name “myfile.txt”

22
Q

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?

A

grep scsi /var/log/messages

23
Q

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?

A

11:00 A.M.

24
Q

Which locale variable overrides all other locale variables?

A

LC_ALL

25
Q

Which locale value specifies French Canadian using Unicode encoding?

A

fr_CA.UTF-8

26
Q

Which directory is a pseudo–file system that is dynamically created when it is accessed?

A

/proc

27
Q

Which of the following is a properly stated goal in a needs assessment?

A

The new Linux system will provide a network database to increase the documentation team’s productivity by an anticipated 20%.

28
Q

Which environment variable can be used to set the current time zone on a Linux system?

A

TZ

29
Q

Which directive in the /etc/sysconfig/clock file configures the time zone a Linux system will use?

A

TIMEZONE

30
Q

Which of the following configuration files is not used by the GRUB2 bootloader?

A

/boot/grub/menu.lst