If your current working directory is /home/alice/Documents/Financial, and you want to change it to /home/alice, you can use this command:
a.
cd ..
b.
cd ../alice
c.
cd /alice
d.
cd ../../
Solution:
(D) cd ../ ../
Reason:
.. represents parent directory, so writing ../.. moves the current working directory two times up the hierarchy which would be /home/alice
Other option is not true, reason for other options:
a. cd .. will change the current directory to /home/alice/Documents
b. cd ../alice will make the current directory as /home/alice/Documents/alice which might be an invalid path
c. cd /alice will change the current directory to /home/alice/Documents/Financial/alice which might be an invalid path
Get Answers For Free
Most questions answered within 1 hours.