module 3 Flashcards
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?
/dev/sdb
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?
pvcreate /dev/sdc
Which command will provide you with a summary of inode consumption on your /dev/sda2 partition?
df -i
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?
mount -o loop ~/discimage.iso /mnt
Which kill signal sends a CTRL-C key sequence to a running process?
SIGINT
What is a zombie process?
A process that has finished executing but whose parent process has not released the child process’s PID
When running a Fedora Linux system that uses SysVinit scripts, where are these scripts stored in the filesystem?
/etc/rc.d/init.d
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?
tune2fs
Which command can be used to create an image of the /dev/sda2 partition in the /mnt/usb/volback file?
dd if=/dev/sda2 of=/mnt/usb/volback
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?
ls ~/Projects | cpio -ov | gzip > /mnt/usbdrive/Projectsbackup.cpio.gz
A user needs to kill a hung process by its process’ name, not its PID. Which utilities could best be used?
killall & pkill
Load the myapp program from the shell prompt and run it in the background. Which command will do this?
myapp &
Use ps to display extended information about only the processes associated with the current terminal session. Which command will do this?
ps -f
After entering vi at the shell prompt, what type of process was created on the Linux system?
User
On which block is the first redundant copy of a partition’s superblock stored by default on an ext4 filesystem?
32768