QuestionQ85Verified/Infrastructure and AutomationCopy linkReport a problemAsk AstroTutorSave questionRefer to the exhibit. What action does the shown Bash script perform?AFor all directories in the current folder, the script goes into the directory and makes a new directory.BThe script waits until input is entered. If the directory exists, the script goes into it until there is no directory with the same name, then it creates a new directory.CThe script waits until input is entered, then it goes into the directory entered and creates a new directory with the same name.DThe script goes into the directory called ג€$ndirג€ and makes a new directory called ג€$ndirג€.Show AnswerAnswerExplanationThe script waits for a directory name as input. As long as a directory with that name exists in the current location, it changes into that directory. Once it reaches a location without a same-named directory, it creates a directory with that name.Learn moreBash Reference Manual: Looping Constructs (GNU)mkdir invocation (GNU Coreutils)Show comments14Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion