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

Where might the BIOS find a boot loader?


Options are :

  • /dev/kmem
  • The swap partition
  • MBR (Correct)
  • /dev/boot
  • RAM

Answer : MBR

LX0-104 CompTIA Linux + Powered by LPI Practice Exam Set 1

How do you exit Vi’s insert mode in order to type command-mode commands?


Options are :

  • Press the F10 key.
  • Press the Shift+Insert key combination
  • Press the ~ key.
  • Press the Esc key. (Correct)
  • Type Ctrl+X followed by Ctrl+C.

Answer : Press the Esc key.

What line in /etc/inittab would indicate that your default runlevel is 5?


Options are :

  • si:5:sysinit:/etc/init.d/rcS
  • l5:5:wait:/etc/init.d/rc 5
  • ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
  • 1:2345:respawn:/sbin/getty 38400 tty1
  • id:5:initdefault: (Correct)

Answer : id:5:initdefault:

The string root (hd1,5) appears in your /boot/grub/menu.lst file. What does this mean?


Options are :

  • GRUB Legacy looks for files on the sixth partition of the second disk. (Correct)
  • GRUB Legacy installs itself in /dev/sdb5.
  • GRUB Legacy installs itself in /dev/hd1,5.
  • GRUB Legacy tells the kernel that the kernel’s root partition is the fifth partition of the first disk.
  • GRUB Legacy looks for files on the fifth partition of the first disk.

Answer : GRUB Legacy looks for files on the sixth partition of the second disk.

N10-006 CompTIA Network+ Certification Practice Test Set 3

How would you remove two lines of text from a file using Vi?


Options are :

  • Using your mouse, select both lines, and then press the Delete or Backspace key.
  • In command mode, position the cursor on the last line, and type 2yy.
  • In insert mode, position the cursor at the start of the first line, and press Ctrl+K twice.
  • In insert mode, position the cursor at the start of the first line, hold down the Shift key while pressing the Down arrow key twice, and press the Delete key on the keyboard.
  • In command mode, position the cursor on the first line, and type 2dd. (Correct)

Answer : In command mode, position the cursor on the first line, and type 2dd.

What can the type command do that whereis can’t do?


Options are :

  • Identify a command as being a binary or a script
  • Identify the command as being for x86 or x86-64 CPUs
  • Assist in typing a command by finishing typing it for you
  • Locate commands based on their intended purpose, not just by name
  • Identify a command as an alias, internal command, or external command (Correct)

Answer : Identify a command as an alias, internal command, or external command

After booting, one of your hard disks doesn’t respond. What might you do to find out what’s gone wrong?


Options are :

  • Check the menu.lst, grub.conf, or grub.cfg configuration file.
  • Check the /var/log/diskerror log file to see what’s wrong.
  • Check the contents of /etc/inittab to be sure it’s mounting the disk.
  • Verify that the disk is listed in /mnt/disks.
  • Type dmesg | less, and peruse the output for disk-related messages. (Correct)

Answer : Type dmesg | less, and peruse the output for disk-related messages.

CompTIA A+ (220-1002) Test Prep, Exams and Simulations Set 3

In Vi’s command mode, you type :q!. What is the effect?


Options are :

  • The text :q! is inserted into the file you’re editing.
  • The program terminates without saving your work. (Correct)
  • Nothing; this isn’t a valid Vi command.
  • An exclamation point (!) overwrites the character under the cursor in the text.
  • The program terminates and saves any existing files that are in memory.

Answer : The program terminates without saving your work.

A system Certification types the following command:

# shutdown -c
What is the effect of this command?


Options are :

  • The system shuts down and reboots immediately.
  • The system asks for confirmation and then shuts down.
  • A previously scheduled shutdown is cancelled. (Correct)
  • The system shuts down and halts immediately.

Answer : A previously scheduled shutdown is cancelled.

Which of the following file-location commands is likely to take the most time to find a file that may be located anywhere on the computer (assuming the operation succeeds)?


Options are :

  • The locate command.
  • The whereis command.
  • The find command. (Correct)
  • The type command.
  • They’re all equal in speed .

Answer : The find command.

CompTIA Security+ (SY0-501) Practice Exams with Simulations Set 6

Which command is used to install GRUB Legacy into the MBR of your first SATA hard drive?


Options are :

  • grub-install /dev/sda1
  • grub (hd0,1)
  • grub-install /dev/sda (Correct)
  • lilo /dev/sda
  • grub-legacy /dev/sda1

Answer : grub-install /dev/sda

Which runlevels are reserved by init for reboot, shutdown, and single-user mode purposes? 


Options are :

  • 0 (Correct)
  • 2
  • 5

Answer : 0

You want to boot a Linux system into single-user mode. What option might you add to a Linux kernel’s options list at a boot loader to accomplish this task?


Options are :

  • telinit 6
  • single-user
  • 1 (Correct)
  • one
  • telinit 1

Answer : 1

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

You’ve installed a commercial spreadsheet program called WonderCalc on a workstation. In which of the following directories are you most likely to find the program executable file?


Options are :

  • /opt/wcalc/bin (Correct)
  • /sbin/wcalc
  • /etc/X11
  • /boot
  • /usr/sbin

Answer : /opt/wcalc/bin

What is the first program that the Linux kernel runs once it’s booted in a normal boot process?


Options are :

  • dmesg
  • rc
  • startup
  • lilo
  • init (Correct)
  • None

Answer : init

How might you identify an initial RAM disk file in GRUB 2?


Options are :

  • ramdisk=/boot/initrd-3.4.2
  • initrd /boot/initrd-3.4.2 (Correct)
  • initramfs=/boot/initrd-3.4.2
  • initramfs /boot/initrd-3.4.2
  • initrd=/boot/initrd-3.4.2

Answer : initrd /boot/initrd-3.4.2

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

Which of the following commands may not be used instead of shutdown in certain circumstances (with appropriate options added to one or the other command)?


Options are :

  • telinit
  • poweroff
  • reboot
  • halt
  • takedown (Correct)

Answer : takedown

You type the following command:
$ runlevel
5 3
What can you tell about your runlevel status?


Options are :

  • The previous runlevel is 3.
  • The runlevel is in the process of changing.
  • The current runlevel is 3. (Correct)
  • The previous runlevel is 5.
  • The current runlevel is 5.

Answer : The current runlevel is 3.

Which of the following is the GRUB 2 boot loader configuration file?


Options are :

  • /boot/grub/menu.lst
  • /boot/grub/grub.conf
  • The MBR
  • /dev/grub
  • /boot/grub/grub.cfg (Correct)

Answer : /boot/grub/grub.cfg

CompTIA IT Fundamentals (Exam FC0-U61) Practice Tests Set 2

What is an advantage of Vi over Emacs?


Options are :

  • Vi is X-based and so is easier to use than Emacs.
  • Vi’s mode-based operations permit it to handle non-English languages
  • Vi encodes text in EBCDIC, which is more flexible than Emacs’ ASCII.
  • Vi includes a built-in Web browser and email client; Emacs doesn’t.
  • Vi is smaller and so can fit on compact emergency systems and embedded devices. (Correct)

Answer : Vi is smaller and so can fit on compact emergency systems and embedded devices.

You want to track down all the files in /home that are owned by karen. Which of the following commands will do the job?


Options are :

  • find /home -name karen
  • locate /home -username karen
  • find /home -uid karen
  • locate /home Karen
  • find /home -user karen (Correct)

Answer : find /home -user karen

From Vi’s command mode, you want to enter insert mode. How might you do this?


Options are :

  • Type :.
  • Press Esc.
  • Type R. (Correct)

Answer : Type R.

SK0-004 CompTIA Server+ Certification Practice Exam Set 5

What can you conclude from the following interaction?
$ which man
/usr/bin/man


Options are :

  • The only file called man on the computer is in /usr/bin.
  • The /usr/bin/man program will be run by any user who types man.
  • The user man owns the /usr/bin/man program file.
  • The first instance of the man program, in path search order, is in /usr/bin. (Correct)
  • The /usr/bin/man program was installed by system package tools.

Answer : The first instance of the man program, in path search order, is in /usr/bin.

What does runlevel 4 do?


Options are :

  • It starts a multi-user system with X and an X-based login running.
  • It starts a multi-user system without X running.
  • Its purpose isn’t standardized, so it can be used for anything you like. (Correct)
  • It starts the computer into single-user mode.
  • It reboots the computer.

Answer : Its purpose isn’t standardized, so it can be used for anything you like.

You want to change to single-user mode on a running system. What command might you use to do this?


Options are :

  • runlevel 1
  • single-user
  • shutdown -1
  • telinit 1 (Correct)
  • halt to 1

Answer : telinit 1

N10-006 CompTIA Network+ Certification Practice Test Set 9

How does man display information by default on most Linux systems?


Options are :

  • Using a custom X-based application
  • Using the less pager (Correct)
  • Using the info browser
  • Using the Vi editor
  • Using the Firefox Web browser

Answer : Using the less pager

Mock Test : CompTIA Network+ (N10-007)

Which of the following commands will change all occurrences of dog in the file animals .txt to mutt in the screen display?


Options are :

  • sed ‘s/dog/mutt/g’ animals.txt (Correct)
  • grep –s “dog||mutt” animals.txt
  • fmt animals.txt | cut ‘dog’ > ‘mutt’
  • sed –s “dog” “mutt” animals.txt
  • cat animals.txt | grep –c “dog” “mutt”

Answer : sed ‘s/dog/mutt/g’ animals.txt

An administrator types the following command on an RPM-based Linux distribution:
# rpm -ivh megaprog.rpm
What is the effect of this command?


Options are :

  • If the megaprog.rpm package exists, is valid, and isn’t already installed on the computer, it is installed. (Correct)
  • Nothing; megaprog.rpm isn’t a valid RPM filename, so rpm will refuse to operate on this file.
  • If the megaprog package is installed on the computer, it is uninstalled.
  • The megaprog.rpm package replaces any earlier version of the package that’s already installed on the computer.
  • The megaprog.rpm source RPM package is compiled into a binary RPM for the computer.

Answer : If the megaprog.rpm package exists, is valid, and isn’t already installed on the computer, it is installed.

How do the > and >> redirection operators differ?


Options are :

  • The > operator redirects standard output; the >> operator redirects standard error.
  • The > operator writes to an existing file but fails if the file doesn’t exist; the >> operator writes to an existing file or creates a new one if it doesn’t already exist.
  • The > operator creates a new file or overwrites an existing one; the >> operator appends to an existing file or issues an error message if the specified file doesn’t exist.
  • The > operator redirects standard output; the >> operator redirects standard input.
  • The > operator creates a new file or overwrites an existing one; the >> operator creates a new file or appends to an existing one. (Correct)

Answer : The > operator creates a new file or overwrites an existing one; the >> operator creates a new file or appends to an existing one.

CompTIA N10-004 Network+ Certification Practice Test Set 8

How many commands can you pipe together at once?


Options are :

  • 2
  • 3
  • 16
  • An arbitrary number (Correct)
  • 4

Answer : An arbitrary number

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions