1. Which of the following commands saves a file in Vi and exits from the editor?
ID: 3874541 • Letter: 1
Question
1. Which of the following commands saves a file in Vi and exits from the editor?
Select one:
a. :!exit
b. :wq
c. :e
d. :!save
2. What is the first process that the Linux kernel runs when it boots on most Linux systems?
Select one:
a. init
b. root
c. zombie
d. dmesg
3. You want to install Linux on a BIOS-based computer that already boots several OSs using the System Commander boot loader. Where should you install GRUB if you don’t want to disrupt the System Commander configuration?
Select one:
a. In the boot sector of a Linux swap partition
b. In the MBR of the main hard disk
c. In the boot sector of a Linux filesystem partition
d. In the boot sector of a Windows C: drive
4. Which of the following methods will safely power down the computer? (Select all that apply.)
Select one or more:
a.Typing shutdown -r now as root.
b. Typing shutdown -h now as root.
c. Typing telinit 0 as root.
d. Pushing the power button on the computer’s case.
5. While editing a file in Vi, you’re called away. When you return, you can’t recall which of Vi’s three modes you’re in. How can you return to a known mode?
Select one:
a. Press the Esc key
b. Type :wq
c. Type mode: edit
d. Press the F1 key
6. The Exim server isn’t starting in runlevel 5. What files might you examine, and possibly edit or rename, to fix this problem? (Choose all that apply.)
Select one or more:
a. /etc/inetd.conf
b. /etc/rc.d/rc5.d/K50exim
c./etc/inittab
d. /etc/X11/xorg.conf
7. Which of the following systems is the earliest one in the boot sequence of a typical x86 or x86-64 Linux computer?
Select one:
a. BIOS or EFI
b. bash
c. GRUB
d. init
8. You’ve changed the default runlevel to 3 by editing /etc/inittab. Which command could you type to change the current runlevel to 3? (Choose all that apply.)
Select one or more:
a. telinit Q
b. telinit --reload
c. telinit S
d. telinit 3
Explanation / Answer
According to chegg guidelines i have to solve first four bits only.
1.
Option b correct.
:wq commands saves a file in Vi and exits from the editor.
To perform write operation on your file by entering :w.
To perform quit by entering :q .
We can combine save and exit use :wq
2.
Option a correct.
init is the first process that the Linux kernel runs when it boots on most Linux systems.
run /init program under the Linux kernel.
While run the Linux, Init is the root/parent of all processes.
3.
Option b correct.
4.
Option b and c correct.
Methods will safely power down the computer :
Typing shutdown -h now as root.
Typing telinit 0 as root.
Using these commands we can safely power down operation.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.