UNIX Quiz#1 Review
What is the default shell in Linux called?
BASH
If a user's current directory is /home/mary/project1 which command could she use to move to the etc directory directly under the root? A) cd.. B) cd /home/mary/etc C) cd /etc D) cd \etc
C
Assume that your current directory is /usr/local. Which command could you use to change to /etc directory using a relative path name?
cd ../../etc
Assume that your current directory is /usr/local. Which command could you use to change to /etc directory using an absolute path name?
cd /etc
Which of the following is an absolute path name A)Home/resume B)/home/resume C)resume d)None of the above
B
A user typed pwd and saw the output: /home/jim/sales/pending. How could that user navigate to the /home/jim directory? A) cd .. B) cd /jim C) cd ../.. D) cd ./.
C
Assume that your current directory is /usr/local. Which command could you use to change to /usr/local/share/info directory using an absolute path name?
cd /usr/local/share/info
Assume that your current directory is /usr/local. Which command could you use to change to /usr/local/share/info using a relative path name?
cd share/info