QuestionQ12Verified/Shells and Shell ScriptingCopy linkReport a problemAsk AstroTutorSave questionWhich statement is true about the command ls > files when files does not already exist?AThe output of ls is printed to the terminalBfiles is created and contains the output of lsCAn error message is shown and ls is not executedDThe command files is executed and receives the output of lsEAny output of ls is discardedShow AnswerAnswerExplanationThe > output-redirection operator creates the target file when it does not exist and redirects the standard output of ls into that file.Show comments4Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion