FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

RASPBERRY PI PROJECT IDEAS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command takes you up (back) two directories?
A
cd ..
B
cd ../..
C
cd
D
cd  
Explanation: 

Detailed explanation-1: -Type. cd.. into the prompt. After you press Enter, this command tells the program to navigate back to the previous folder. It’s important you type the two dots, since you won’t navigate anywhere if you simply type “cd” into the prompt.

Detailed explanation-2: -That’s simply the cd command followed by a space and then a dash. The name of the directory you’re toggling to displays and then you’re taken to that directory. To toggle back to the second directory again, use the cd-command again.

Detailed explanation-3: -For example if you are in /var/www/http and you type cd .. you will be in directory /var/www/. That line will take you back two directories. If you need to go further back just continue adding ../..

Detailed explanation-4: -You can use cd .. to move one directory back, or cd ./path/to/another/folder to jump through many folders into a specific location.

There is 1 question to complete.