CompTIA Network, Comptia Network+ Training Course
QUESTION NO: 1
When building an RPM package, which rpmbuild option is used to unpack sources and apply patches before proceeding with the next steps? CompTIA Network
A.-bb
B.-be
C. -bs
D. -ba
E. -bp
Answer: E
Explanation: man rpm
QUESTION NO: 2
You are not sure whether the kernel has detected a piece of hardware in your machine. What command, without options or parameters, should be run to present the contents of the kernel ring-buffer?
Answer: /BIN/DMESG
Explanation: dmesg is used to examine or control the kernel ring buffer.
QUESTION NO: 3
When using the SysV init system, the file /etc/rc3.d/S55sshd is a symbolic link. Type the full path and file name to which this is linked.
Answer: /ETC/INIT.D/SSHD
QUESTION NO: 4
The Samba configuration file uses the parameter read only=yes. Which of the following is equivalent?
A. writeaccess=no
B. read write=no
C. browseable=no
D. write only=no
E. writeable=no
Answer: E
QUESTION NO: 357_CORRECT TEXT
The system configuration file named _______ is commonly used to set the default runlevel. (Please provide the fill name with full path information).
Answer: /ETC/INITTAB
QUESTION NO: 6
A pre-compiled module has been moved to /lib/modules/, but 'modprobe -a' fails to load it. What needs to be done to enable usage of this module?
A. make modules_install must be run.
B. depmod must be run.
C. The kernel must be re-compiled.
D. modules.conf or modprobe.conf must be edited.
E. The system must be rebooted.
Answer: B
Explanation: While we load the modules, it checks the dependency whether loaded or not ? For
dependency it checks the modules.dep file that file should generate by running the depmod command. Most probably unable to load the modules is due to dependencies.
-a or --all
Insert all modules matching the given wildcard. This option is provided for backwards compatibility:
QUESTION NO: 7
A system is running out of swap space. To initialise 5GB of additional swap space, which combination of commands should be used? Network Course
A. dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap/tmp/swapfile; mount/tmp/swapfile
B. dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile
C. touch -5G /tmp/swapfile; swapon /tmp/swapfile
D. mkswap /tmp/swapfile 512000; swapon /tmp/swapfile
E. dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile
Answer: E
Explanation:
By Creating the image file, we can use as a Virtual Memory.
To use as a swap space:
1. Create the image file using dd command where if means input from and of means output filename, bs means byte sector and count means how many times to read.
2. mkswap command creates the swapfilesystem
3. Toon/off the swap memory: swapon swapfile and to off swapoff swapfile
4. Verify using free command


