Without exiting vi, how can the file be reopened for editing with the new content?

While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?A . :r B. :n C. :w D. :eView AnswerAnswer: D

November 15, 2022 No Comments READ MORE +

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)A . shutdown -R 1 now B. shutdown -single now C. init 1 D. telinit 1 E. runlevel 1View AnswerAnswer: C,D

November 15, 2022 No Comments READ MORE +

To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?

To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?A . LD_LOAD_PATH B. LD_LIB_PATH C. LD_LIBRARY_PATH D. LD_SHARE_PATH E. LD_RUN_PATHView AnswerAnswer: C

November 15, 2022 No Comments READ MORE +

While /tmp/file contains data, why is /tmp/file empty afterwards?

When running the command sed -e "s/a/b/" /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards?A . The file order is incorrect. The destination file must be mentioned before the command to ensure redirection. B. The command sed did not match anything in that file therefore the output...

November 14, 2022 No Comments READ MORE +

What is the difference between the i and a commands of the vi editor?

What is the difference between the i and a commands of the vi editor?A . i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modesautomatically. B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor. C....

November 14, 2022 No Comments READ MORE +

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?A . kill -PIPE 123 B. kill -KILL 123 C. kill -STOP 123 D. kill -TERM 123View AnswerAnswer: D

November 14, 2022 No Comments READ MORE +

Which option to the yum command will update the entire system?

CORRECT TEXT Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)View AnswerAnswer: update, upgrade

November 14, 2022 No Comments READ MORE +

Which command will display messages from the kernel that were output during the normal boot sequence?

CORRECT TEXT Which command will display messages from the kernel that were output during the normal boot sequence?View AnswerAnswer: dmesg, /bin/dmesg

November 14, 2022 No Comments READ MORE +

Which of the following files, located in the user home directory, is used to store the Bash history?

Which of the following files, located in the user home directory, is used to store the Bash history?A . .bash_history B. .bash_histfile C. .history D. .bashrc_history E. .history_bashView AnswerAnswer: A

November 14, 2022 No Comments READ MORE +

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

Which of the following kernel parameters instructs the kernel to suppress most boot messages?A . silent B. verbose=0 C. nomesg D. quietView AnswerAnswer: D

November 14, 2022 No Comments READ MORE +