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

When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While/tmp/file contains data, why is /tmp/file empty afterwards?


Options are :

  • The command sed did not match anything in that file therefore the output is empty.
  • When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading. (Correct)
  • Redirection for shell commands do not work using the > character. It only works using the | character instead
  • The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.

Answer : When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.

Which of the following commands creates an ext3 filesystem on /dev/sdb1?


Options are :

  • /sbin/mkfs -c ext3 /dev/sdb1
  • /sbin/mke3fs -j /dev/sdb1
  • /sbin/mke2fs -j /dev/sdb1 (Correct)

Answer : /sbin/mke2fs -j /dev/sdb1

Regarding the command:
nice -5 /usr/bin/prog
Whichof the following statements is correct?


Options are :

  • /usr/bin/prog is executed with a priority of 5.
  • /usr/bin/prog is executed with a nice level of 5. (Correct)
  • /usr/bin/prog is executed with a nice level of -5.
  • /usr/bin/prog is executed with a priority of -5.

Answer : /usr/bin/prog is executed with a nice level of 5.

JK0-016 CompTIA Network+ 2009 Edition Practice Exam Set 2

Which of the following commands will reduce all consecutive spaces down to a single
space?


Options are :

  • tr -r ' ' '\n' < a.txt > b.txt
  • tr -s ' ' < a.txt > b.txt (Correct)
  • tr -d ' ' < a.txt > b.txt
  • tr -c ' ' < a.txt > b.txt

Answer : tr -s ' ' < a.txt > b.txt

In Bash, inserting 1>&2 after a command redirects


Options are :

  • standard error to standard input.
  • standard error to standard output.
  • standard output to standard error. (Correct)
  • standard input to standard error.

Answer : standard output to standard error.

What is the default nice level when a process is started using the nice command?


Options are :

  • -10
  • 20
  • 10 (Correct)
  • 0

Answer : 10

SY0-401 CompTIA Security+ Certification Practice Exam Set 7

Which of the following pieces of information of an existing file is changed when a hard link
pointing to that file is created?


Options are :

  • .Modify timestamp
  • File size
  • Permissions
  • Inode number
  • .Link count (Correct)

Answer : .Link count

Which umask value will result in the default access permissions of 600 (rw-------) for files
and 700 (rwx------) for directories? (Specify only the numerical umask value.)


Options are :

  • 0077, 077 (Correct)

Answer : 0077, 077

Which of the following file permissions belong to a symbolic link?


Options are :

  • lrwxrwxrwx (Correct)
  • +rwxrwxrwx
  • srwxrwxrwx
  • -rwxrwxrwx

Answer : lrwxrwxrwx

CompTIA A+ 220 902 Test Set 2

Which of the following commands can be used to create a USB storage media from a disk
image?


Options are :

  • dd (Correct)
  • gdisk
  • fdisk
  • cc

Answer : dd

Which run levels should never be declared as the default run level when using SysV init?


Options are :

  • 3
  • 1
  • 0 (Correct)
  • 5

Answer : 0

SY0-401 CompTIA Security+ Certification Practice Exam Set 5

Which of the following options for the kernel's command line changes the systemd boot
target to rescue.target instead of the default target?


Options are :

  • systemd.unit=rescue.target (Correct)
  • systemd.runlevel=rescue.target
  • systemd.service=rescue.target
  • systemd.target=rescue.target

Answer : systemd.unit=rescue.target

Which of the following commands moves and resumes in the background the last stopped
shell job?


Options are :

  • fg
  • back
  • run
  • bg (Correct)

Answer : bg

Which of the following information is stored within the BIOS? 


Options are :

  • The system's hostname
  • Boot device order (Correct)
  • Timezone
  • Linux kernel version

Answer : Boot device order

SY0-401 CompTIA Security+ Certification Practice Exam Set 3

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel?
(Specify the file name only without any path.)


Options are :

  • cmdline, /proc/cmdline (Correct)

Answer : cmdline, /proc/cmdline

Which of the following commands brings a system running SysV init into a state in which it
is safe to perform maintenance tasks? 


Options are :

  • shutdown -single now
  • init 1 (Correct)
  • shutdown -R 1 now
  • runlevel 1

Answer : init 1

What can the Logical Volume Manager (LVM) be used for? 


Options are :

  • None
  • To dynamically change the size of logical volumes. (Correct)
  • To encrypt logical volumes.
  • To create RAID 9 arrays.

Answer : To dynamically change the size of logical volumes.

JK0-802 CompTIA A+ Certification Exam Set 2

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key
combination?


Options are :

  • /etc/keys
  • /proc/keys
  • /etc/inittab (Correct)
  • /proc/inittab

Answer : /etc/inittab

What is the first program that is usually started, at boot time, by the Linux kernel when
using SysV init?


Options are :

  • /lib/init.so
  • /etc/rc.d/rcinit
  • /proc/sys/kernel/init
  • /sbin/init (Correct)

Answer : /sbin/init

Which of the following commands can be used to download the RPM package kernel
without installing it?


Options are :

  • yum download --no-install kernel
  • yumdownloader kernel (Correct)
  • rpmdownload kernel
  • rpm --download --package kernel

Answer : yumdownloader kernel

JK0-017 CompTIA E2C Project+ Certification Practice Exam Set 13

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line,
which single character command will insert the deleted content below the current line?


Options are :

  • U (uppercase)
  • i (lowercase)
  • P (uppercase)
  • p (lowercase) (Correct)

Answer : p (lowercase)

Which of the following statements is correct when talking about /proc/?


Options are :

  • All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
  • All files within /proc/ are read-only and their contents cannot be changed.
  • All files within /proc/ are only readable by the root user
  • All changes to files in /proc/ are immediately recognized by the kernel. (Correct)

Answer : All changes to files in /proc/ are immediately recognized by the kernel.

Which of the following commands reboots the system when using SysV init?


Options are :

  • shutdown -r now
  • shutdown -k now "rebooting"
  • telinit 0 (Correct)
  • shutdown -r "rebooting"

Answer : telinit 0

CompTIA JK0-015 E2C Security+ Certification Practice Test Set 14

Which of the following commands lists all currently installed packages when using RPM
package management?


Options are :

  • rpm --list–installed
  • rpm --query --all (Correct)
  • yum --list --installed
  • yum --query --all

Answer : rpm --query --all

Which command is used in a Linux environment to create a new directory? (Specify ONLY
the command without any path or parameters.)


Options are :

  • mkdir, /usr/bin/mkdir (Correct)

Answer : mkdir, /usr/bin/mkdir

What is the name of the main configuration file for GNU GRUB? (Specify the file name only
without any path.)


Options are :

  • menu.lst, grub.conf, grub.cfg (Correct)

Answer : menu.lst, grub.conf, grub.cfg

JK0-019 CompTIA E2C Network + Certification Exam Set 9

Which of the following commands lists the dependencies of a given dpkg package?


Options are :

  • apt-cache dependencies package
  • apt-cache depends-on package
  • apt-cache requires package
  • apt-cache depends package (Correct)

Answer : apt-cache depends package

Which of the following kernel parameters instructs the kernel to suppress most boot
messages?


Options are :

  • nomesg
  • quiet (Correct)
  • silent
  • verbose=0

Answer : quiet

Which Debian package management tool asks the configuration questions for a specific
already installed package just as if the package were being installed for the first time?
(Specify ONLY the command without any path or parameters.)


Options are :

  • dpkg-reconfigure (Correct)

Answer : dpkg-reconfigure

CompTIA N10-004 Network+ Certification Practice Test Set 7

During a system boot cycle, what program is executed after the BIOS completes its tasks?


Options are :

  • The kernel
  • The bootloader (Correct)
  • The inetd program
  • The init program

Answer : The bootloader

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions