What is the correct way to save the current directory to a variable? 1 year agoby Linux Questions What is the correct way to save the current directory to a variable? › Category: Linux Essentials › What is the correct way to save the current directory to a variable? Vote Up 0 Vote Down Linux Questions Staff asked 1 year ago What is the correct way to save the current directory to a variable? A=`pwd` A=pwd A=cwd pwd $A pwd | $A Please login or Register to submit your answer Username or Email Address Password Remember Me FacebookXGoogle+PinterestLinkedIn