QuestionQ89Verified/Shells and Shell ScriptingCopy linkReport a problemAsk AstroTutorSave questionWhich of the following statements is true for a command that ends with an & character?AThe command's output is redirected to /dev/null.BThe command is run in background of the current shell.CThe command's output is executed by the shell.DThe command is run as a direct child of the init process.EThe command's input is read from /dev/null.Show AnswerAnswerExplanationA trailing & causes the shell to execute the command asynchronously as a background job, allowing the current shell to continue without waiting for it to complete. Standard input is only defaulted to /dev/null under specific conditions, such as inactive job control without explicit redirection. GNU Bash Reference Manual: Lists of CommandsLearn moreGNU Bash Reference Manual: Lists of CommandsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion