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
  • /dev/boot
  • RAM

Answer : MBR

CompTIA Network+ (N10-007) : 6 Practice Exams - 2019 Set 3

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.
  • 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:

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.
  • 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.

CAS-001 CompTIA Advanced Security Practitioner Practice Exam Set 5

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.

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

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.

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

CAS-001 CompTIA Advanced Security Practitioner Practice Exam 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.
  • 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.
  • 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.
  • The type command.
  • They’re all equal in speed .

Answer : The find command.

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

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
  • 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
  • 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
  • one
  • telinit 1

Answer : 1

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

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
  • /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
  • 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
  • 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 MB0-001 Mobility+ Certification Practice Exam Set 3

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

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.
  • 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

Answer : /boot/grub/grub.cfg

CompTIA JK0-018 Security+ E2C Certification Practice Exam Set 8

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.

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

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.

Answer : Type R.

CompTIA PD1-001 PDI+ Beta Certification Practice Exam Set 12

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.
  • 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.
  • 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
  • halt to 1

Answer : telinit 1

CompTIA JK0-801 A+ Certification Part – 2 Practice Exam Set 3

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


Options are :

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

Answer : Using the less pager

CT0-101 Convergence+ Certification Practice Exam Set 2

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
  • 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.
  • 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.

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

FC0-U51 CompTIA IT Fundamentals Certification Exam Set 5

How many commands can you pipe together at once?


Options are :

  • 2
  • 3
  • 16
  • An arbitrary number
  • 4

Answer : An arbitrary number

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions