QuestionQ179Verified/Essential CommandsCopy linkReport a problemAsk AstroTutorSave questionWhich statement is accurate about the command foo 1> bar?AThe stdout from the command foo is appended to the file bar.BThe stdout from the command foo overwrites the file bar.CThe command foo receives its stdin from the file bar.DThe command foo receives its stdin from the stdout of the command bar.EThe stderr from the command foo is saved to the file bar.Show AnswerAnswerExplanationFile descriptor 1 is standard output. Redirecting it with > writes foo’s standard output to bar, creating the file if necessary and truncating any existing contents.Show comments2Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion