QuestionQ5Verified/GNU and Unix CommandsCopy linkReport a problemAsk AstroTutorSave questionWhich of these commands displays the current working directory in a Bash shell?Choose twoAecho "${PWD}"Becho "${WD}"CprintwdDpwdEecho "${pwd}"Show AnswerAnswerExplanationPWD is the Bash variable containing the current working directory, so expanding it with echo displays that directory. The pwd builtin prints the absolute pathname of the current working directory.Learn moreBash Variables — Bash Reference ManualBourne Shell Builtins — Bash Reference ManualShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion