CompTIA Linux+ XK0-006 (V8) Practice Question

You connect to server1 over SSH and need to run make all, a compilation that can last several hours. The job has three requirements: it must survive if you log out or the network drops, both standard output and standard error must be appended to a file named compile.log in the current directory, and the shell prompt should return immediately so you can continue working. Using only standard shell utilities available on a typical Linux system, which single Bash command meets all of these requirements?

  • nohup make all >> compile.log 2>&1 &

  • make all & disown -h

  • nohup make all > compile.log 2>&1 &

  • nohup make all 2>> compile.log &

CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot