module 3 Flashcards

1
Q

You need to mount a USB flash drive on your Linux system. Given that your Linux system currently has one SATA hard drive (/dev/sda). What should be the flash drive’s device name?

A

/dev/sdb

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

After adding a third 1TB solid state drive (SSD) to a Linux server, it needs to be added as storage space to an LVM volume group named DATA on the system. Which command should be entered first to do this?

A

pvcreate /dev/sdc

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

Which command will provide you with a summary of inode consumption on your /dev/sda2 partition?

A

df -i

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

You have an ISO image file named discimage.iso in your home directory, and you want to mount it in the /mnt directory in your Linux filesystem so that you can extract several files from it. Which command will do this?

A

mount -o loop ~/discimage.iso /mnt

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

Which kill signal sends a CTRL-C key sequence to a running process?

A

SIGINT

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

What is a zombie process?

A

A process that has finished executing but whose parent process has not released the child process’s PID

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

When running a Fedora Linux system that uses SysVinit scripts, where are these scripts stored in the filesystem?

A

/etc/rc.d/init.d

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

You are concerned about the condition of a hard drive containing a heavily used ext3 disk partition (/dev/sda2). To ensure data integrity, you want to increase the frequency of automatic fsck checks. Which utility should you use to configure this?

A

tune2fs

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

Which command can be used to create an image of the /dev/sda2 partition in the /mnt/usb/volback file?

A

dd if=/dev/sda2 of=/mnt/usb/volback

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

Which command will create a compressed cpio archive of all the files in the Projects directory within the user’s home directory to /mnt/usbdrive/Projectsbackup.cpio.gz?

A

ls ~/Projects | cpio -ov | gzip > /mnt/usbdrive/Projectsbackup.cpio.gz

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

A user needs to kill a hung process by its process’ name, not its PID. Which utilities could best be used?

A

killall & pkill

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

Load the myapp program from the shell prompt and run it in the background. Which command will do this?

A

myapp &

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

Use ps to display extended information about only the processes associated with the current terminal session. Which command will do this?

A

ps -f

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

After entering vi at the shell prompt, what type of process was created on the Linux system?

A

User

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

On which block is the first redundant copy of a partition’s superblock stored by default on an ext4 filesystem?

A

32768

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

Create a new GPT partition on the /dev/sdc hard disk drive. After running gdisk /dev/sdc at the shell prompt, which command will create a new partition that is 100GB in size?

A

n

17
Q

Which fstab mount option causes pending disk writes to be committed immediately?

A

sync

18
Q

Which type of backup backs up all files modified since the last full backup and does not flag the files as having been backed up?

A

Differential

19
Q

Which command will compress files by default?

A

xy

20
Q

You need to format the first partition on the fourth SATA hard disk using the ext3 filesystem. Which is the correct command to do this?

A

mkfs -t ext3 /dev/sdd1

21
Q

You want to run the rsync command to synchronize the home directory with another server on the network, but you know this command will take several hours to complete and you don’t want to leave the system logged in during this time. Which commands will leave rsync running after logout?

A

nohup

22
Q

You’ve used fdisk to create a new MBR partition on the second hard drive in your Linux system. You want to use the partition as a second swap partition for your system. Which partition type do you need to change it to?

A

82

23
Q

Which file is used to automatically mount filesystems when the system initially boots?

A

/etc/fstab

24
Q

Which RAID system has two additional hard drives for parity?

A

RAID 6

25
Q

You need to use fdisk to create an MBR partition for the fourth SATA hard drive in your system. Which is the correct command to do this?

A

fdisk /dev/sdd

26
Q

You need to mount an optical disc in /media/dvd. Which command will do this?

A

mount -t iso9660 /dev/cdrom/media/dvd

27
Q

Which ps option can be used to display all currently running processes?

A

-e

28
Q

The /dev/sda1 partition on your Linux system currently has no volume label. Given that it is an ext4 partition, which command will set the label to “DATA”?

A

tune2fs -l Data /dev/sda1

29
Q

Create a backup of /etc to a removable hard disk drive mounted at /mnt/USB. Which tar command will do this?

A

tar -cfv /mnt/USB/backup.tar /etc

30
Q

Which commands will extend a logical volume filesystem from 500MB to 1000MB?

A

lvextend -L +500 /dev/lvm1 & lvextend -L 1000 /dev/lvm1