Comptia Linux+ LX0-103 Certification Exam Practice Test Set 6

Which of the following commands are commonly used to create archive files?


Options are :

  • vi
  • tape
  • restore
  • cpio

Answer : cpio

SY0-401 CompTIA Security+ Certification Practice Exam Set 10

You see the usrquota and grpquota options in the /etc/fstab entry for a filesystem. What is the consequence of these entries?


Options are :

  • Quota support will be disabled on the filesystem in question.
  • Quota support will be available if it's compiled into the kernel; it will be automatically activated when you mount the filesystem.
  • User quotas will be available, but the grpquota option is invalid and will be ignored
  • Nothing; these options are malformed and so will have no effect.
  • Quota support will be available if it's compiled into your kernel, but you must activate it with the quotaon command.

Answer : Quota support will be available if it's compiled into your kernel, but you must activate it with the quotaon command.

Which of the following pieces of information can df not report?


Options are :

  • The percentage of available disk space used on a partition
  • The filesystem type of a partition
  • How long the filesystem has been mounted
  • The mount point associated with a filesystem
  • The number of inodes used on an ext3fs partition

Answer : How long the filesystem has been mounted

What is the minimum safe procedure for removing a USB flash drive, mounted from /dev/ sdb1 at /media/usb, from a Linux computer?


Options are :

  • None
  • Type fsck /dev/sdb1, wait for the command to return and disk-activity lights to stop, and then unplug the drive.
  • Unplug the drive, and then type umount /media/usb to ensure that Linux registers the drive's removal from the system.
  • Type usbdrive-remove, and then quickly remove the disk before its activity light stops blinking.
  • Type umount /media/usb, wait for the command to return and disk-activity lights to stop, and then unplug the drive.
  • Unplug the drive, and then type sync /dev/sdb1 to flush the caches to ensure problems don't develop.

Answer : Type umount /media/usb, wait for the command to return and disk-activity lights to stop, and then unplug the drive.

CompTIA CySA+ Set 4

What command would you type (as root) to change the ownership of somefile.txt from ralph to tony?


Options are :

  • chown tony somefile.txt
  • chmod somefile.txt tony
  • chmod tony:ralph somefile.txt
  • chown ralph:tony somefile.txt
  • chown somefile.txt tony

Answer : chown tony somefile.txt

Which of the following commands can be used to summarize the quota information about all filesystems?


Options are :

  • repquota -a
  • quotacheck
  • edquota -a
  • repquota
  • quotacheck -a

Answer : repquota -a

Which of the following commands would you type to enable world read access to the file myfile.txt?


Options are :

  • chmod u+r myfile.txt
  • chmod o+r myfile.txt
  • chmod a-r myfile.txt
  • chmod 741 myfile.txt
  • chmod 0640 myfile.txt

Answer : chmod o+r myfile.txt

FC0-TS1 CompTIA Strata IT for Sales Practice Exam Set 1

Which of the following /etc/fstab entries will mount /dev/sdb2 as the /home directory at boot time?


Options are :

  • /dev/sdb2 reiserfs /home defaults 0 0
  • reiserfs /dev/sdb2 /home noauto 0 0
  • /home /dev/sdb2 reiserfs noauto 0 0
  • /dev/sdb2 /home reiserfs defaults 0 0
  • /home reiserfs /dev/sdb2 noauto 0 0

Answer : /dev/sdb2 /home reiserfs defaults 0 0

Which of the following umask values will result in files with rw-r----- permissions?


Options are :

  • 210
  • 640
  • 022
  • 027
  • 138

Answer : 027

What mount point should you associate with swap partitions?


Options are :

  • /mem
  • None of the above
  • /
  • /boot
  • /swap

Answer : None of the above

FC0-U51 CompTIA IT Fundamentals Certification Exam Set 8

You want to create a link from your home directory on your hard disk to a directory on a CD-ROM drive. Which of the following types of links might you use?


Options are :

  • Either a symbolic or a hard link
  • Only a hard link
  • None of the above; such links aren't possible under Linux
  • Only a hard link, and then only if both directories use the same low-level filesystem
  • Only a symbolic link

Answer : Only a symbolic link

Typing ls -ld wonderjaye reveals a symbolic file mode of drwxr-xr-x. Which of the following are true?


Options are :

  • wonderjaye has its SUID bit set.
  • wonderjaye is an executable program.
  • wonderjaye is a directory.
  • wonderjaye is a symbolic link.

Answer : wonderjaye is a directory.

What is an advantage of a journaling filesystem over a conventional (non-journaling) filesystem?


Options are :

  • Journaling filesystems record all transactions, enabling them to be undone.
  • Journaling filesystems are older and better tested than non-journaling filesystems.
  • Journaling filesystems never need to have their filesystems checked with fsck.
  • Journaling filesystems support Linux ownership and permissions; non-journaling filesystems don't
  • Journaling filesystems require shorter disk checks after a power failure or system crash.

Answer : Journaling filesystems require shorter disk checks after a power failure or system crash.

JK0-802 CompTIA A+ Certification Exam Set 7

What does the following command accomplish?  # mkfs -t ext2 /dev/sda4


Options are :

  • It converts an ext2 filesystem to an ext4 filesystem.
  • It sets the partition table type code for /dev/sda4 to ext2.
  • Nothing; the -t option isn't valid, and so it causes mkfs to abort its operation.
  • It creates a new ext2 filesystem on /dev/sda4, overwriting any existing filesystem and data.
  • It converts a FAT partition into an ext2fs partition without damaging the partition's existing files.

Answer : It creates a new ext2 filesystem on /dev/sda4, overwriting any existing filesystem and data.

Which of the following options is used with fsck to force it to use a particular filesystem type?


Options are :

  • -A
  • -f
  • -c
  • -t
  • -n

Answer : -t

When should programs be configured SUID root?


Options are :

  • Never; this permission is a severe security risk
  • Only when they require root privileges to do their job
  • Whenever a program should be able to access a device file
  • Whenever the program file is owned by the root user
  • At all times; this permission is required for executable programs

Answer : Only when they require root privileges to do their job

CompTIA Network+ (N10-007) 6 Practice Exams and Simulations Set 8

You type mkdir one/two/three and receive an error message that reads, in part, No such file or directory. What can you do to overcome this problem? 


Options are :

  • Type touch /bin/mkdir to be sure the mkdir program file exists.
  • Type mktree one/two/three instead of mkdir one/two/three.
  • Add the --parents parameter to the mkdir command.
  • Type rmdir one to clear away the interfering base of the desired new directory tree.

Answer : Add the --parents parameter to the mkdir command.

To access files on a USB flash drive, you type mount /dev/sdc1 /media/flash as root. Which types of filesystems will this command mount?


Options are :

  • Ext2fs
  • FAT
  • ReiserFS
  • All of the above
  • HFS

Answer : All of the above

What parameter can you pass to ln to create a soft link?


Options are :

  • --soft
  • -s
  • --sl
  • --slink

Answer : -s

CompTIA CAS-002 Advanced Security Practitioner Certify Exam Set 4

Why might you type touch filename?


Options are :

  • To write cached data relating to filename to the disk
  • To convert filename from DOS-style to Unix-style end-of-line characters
  • To move filename to the current directory
  • To ensure that filename's timestamp holds the current time
  • To test the validity of filename's disk structures

Answer : To convert filename from DOS-style to Unix-style end-of-line characters

You want to discover the sizes of several dot files in a directory. Which of the following commands might you use to do this?


Options are :

  • ls -d
  • ls -p
  • ls -R
  • ls -F
  • ls -la

Answer : ls -la

You've received a tarball called data79.tar from a colleague, but you want to check the names of the files it contains before extracting them. Which of the following commands would you use to do this?


Options are :

  • tar xvf data79.tar
  • tar rvf data79.tar
  • tar tvf data79.tar
  • tar uvf data79.tar
  • tar cvf data79.tar

Answer : tar tvf data79.tar

CompTIA A+ (220-1001) Test Prep, Exams and Simulations Set 1

What filesystem options might you specify in /etc/fstab to make a removable disk (USB flash drive, Zip disk, floppy disk, and so on) mountable by an ordinary user with a UID of 1000?


Options are :

  • uid=1000
  • user
  • owners

Answer : user

You want to move a file from your hard disk to a USB flash drive. Which of the following is true?


Options are :

  • You must use the FAT filesystem on the USB flash drive; Linux-native filesystems won't work on removable disks.
  • The mv command will adjust filesystem pointers without physically rewriting data if the flash drive uses the same filesystem type as the hard disk partition.
  • You'll have to use the --preserve option to mv to keep ownership and permissions set correctly.
  • The mv command will delete the file on the hard disk after copying it to the flash drive.
  • You must use the same filesystem type on both media to preserve ownership and permissions.

Answer : The mv command will delete the file on the hard disk after copying it to the flash drive.

Which of the following best summarizes the differences between DOS's FDISK and Linux's fdisk?


Options are :

  • The two are completely independent programs that accomplish similar goals, although Linux's fdisk is more flexible.
  • DOS's FDISK uses GUI controls, whereas Linux's fdisk uses a command-line interface, but they have similar functionality.
  • Linux's fdisk is a simple clone of DOS's FDISK but written to work from Linux rather than from DOS or Windows.
  • DOS's FDISK manages GPT disks whereas Linux's fdisk manages MBR disks.
  • Despite their similar names, they're completely different toolsóDOS's FDISK handles disk partitioning, whereas Linux's fdisk formats floppy disks.

Answer : The two are completely independent programs that accomplish similar goals, although Linux's fdisk is more flexible.

CompTIA JK0-022 E2C Security+ Threats & Vulnerabilities Exam Set 7

Which of the following describes a difference between apt-get and dpkg?


Options are :

  • apt-get can automatically retrieve and update programs from Internet sites; dpkg can't.
  • apt-get provides a GUI interface to Debian package management; dpkg doesn't.
  • apt-get can install tarballs in addition to Debian packages; dpkg can't.
  • apt-get works only with Debian-based distributions, but dpkg can work with both RPMs and Debian packages.
  • apt-get is provided only with the original Debian distribution, but dpkg comes with Debian and its derivatives.

Answer : apt-get can automatically retrieve and update programs from Internet sites; dpkg can't.

CompTIA JK0-022 E2C Security+ Network Security Practice Exam Set 5

Which of the following commands would you type to update the unzip program on a Fedora system to the latest version?


Options are :

  • yum check-update unzip
  • yum update unzip
  • yum -U unzip
  • yum -u unzip

Answer : yum update unzip

Typing fdisk -l /dev/sda on a Linux computer with an MBR disk produces a listing of four partitions: /dev/sda1, /dev/sda2, /dev/sda5, and /dev/sda6. Which of the following is true?


Options are :

  • If you add a /dev/sda3 with fdisk, /dev/sda5 will become /dev/sda6 and /dev/ sda6 will become /dev/sda7.
  • The partition table is corrupted; there should be a /dev/sda3 and a /dev/sda4 before /dev/sda5.
  • Both /dev/sda1 and /dev/sda2 are logical partitions.
  • Either /dev/sda1 or /dev/sda2 is an extended partition.
  • The disk contains two primary partitions and two extended partitions.

Answer : Either /dev/sda1 or /dev/sda2 is an extended partition.

What programs might you use to learn what your system's load average is?


Options are :

  • ld
  • top
  • la
  • load

Answer : top

FC0-U41 CompTIA Strata IT Fundamentals Practice Test Set 8

Which of the following are restrictions on ordinary users' abilities to run renice?


Options are :

  • Users may not decrease the priority (that is, increase the priority value) of their own processes.
  • Users may not modify the priorities of processes that are already running.
  • Users may not modify the priorities of other users' processes.
  • Users may not modify the priority of their programs launched from anything but their current shells.

Answer : Users may not modify the priorities of other users' processes.

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions