LPIC-1/CompTIA Linux+ Certification Ch. 10
You've noticed that a renegade executable has been installed on your Linux server and that it is currently running. You need to: 1) identify the process using the file so that you can kill it and 2) determine which user account is being used to run it. Which fuser command options should you use to do this? (Choose two)
-k & -u
You need to mount a USB flash drive on your Linux system. Given that your Linux system currently has on SATA hard drive installed. which device file represents the flash drive?
/dev/sdb
Which file is used to automatically mount file systems when the system initially boots?
/etc/fstab
On which block is the first redundant copy of a partition's superblock stored by default on an ext4 file system?
32768
You've used fdisk to create a new 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?
82
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?
Differential
Which command can be used to create an image of your /dev/sda2 partition in the /mnt/usb/volback file?
dd if=/dev/sda of =/mnt/usb/volback
Which command will provide you with a summary of inode consumption on your /dev/sda2 partition?
df -i
You need to use fdisk to create a partition for the fourth SATA hard drive in your system. Which is the correct command to do this?
fdisk/dev/sdd
You want to create a compressed cpio archive of all the files in the Projects directory within your home directory to /mnt/usbdrive/Projectsbackup/cpio.gz. Which command will do this?
ls ~/ Projects | cpio -ov | gzip > /mnt/usbdrive/Projectsbackup/cpio.gz
You need to format the first partition on the slave drive on the secondary IDE channel using the ext3 file system. Which is the correct command to do this?
mkfs -t ext3 /dev/sdd1
You've created a new swap partition (/dev/sdb1) using the fdisk utility. You need to format and enable this partition. Which commands should you use to do this? (Choose two)
mkswap /dev/sdb1 swapon /dev/sdb1
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 file system so that you can extract several files from it. Which command will do this?
mount -o loop~/discimage.iso /mnt
You created an ext4 file system on the first partition on the second hard disk in your system and now need to mount it in /mnt/extraspace in read-write mode. Which commands will do this? (Choose two)
mount -t ext4 /dev/sdb1 /mnt/extraspace/ mount -a /dev/sdb1 /mnt/extraspace/
You need to mount an optical disc in /media/dvd. Which command will do this?
mount -t iso9660 /dev/cdrom /media/dvd
Which fstab mount option causes pending disk writes to be committed immediately?
sync
You need to create a backup of /etc to a removable hard disk drive mounted at /mnt/USB. Which tar command will do this?
tar -cfv /mnt/USB/backup.tar /etc
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
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"?
tune2fs -L DATA/dev/sda1
You have mounted the /dev/sdb1 partition in the /mnt directory and now need to unmount it. Which commands will do this? (Choose two)
umount/mnt umount/dev/sdb1