Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I'm new to Ubuntu and I need to know how I go to a folder on my desktop in Terminal. I also need to extract a file from the folder if you could tell me where to put the command to extract it as well. Thanks

share|improve this question
    
You need to ask another question about that "extract" command. However, before you do, please search this website for previous answers. Take a look at this search: askubuntu.com/search?tab=relevance&q=how%20do%20I%20extract –  Alaa Sep 24 '13 at 4:28
add comment

marked as duplicate by Radu Rădeanu, Alaa, Mitch, Warren Hill, neon_overload Sep 24 '13 at 6:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Open terminal then type the below command:

cd ~/Desktop/[Name of the folder]
pwd

This should show the preset working directory which should be /home/[username]/Desktop/[Name of the folder].

share|improve this answer
    
When I enter cd~/Desktop/Name it says that the folder can not be found. –  Agameg Sep 24 '13 at 4:07
    
@Agameg That's because you don't have any directory named Name in ~/Desktop –  Radu Rădeanu Sep 24 '13 at 4:21
    
I should have told [Name of the folder] should be replaced with the actual folder name... My bad... –  migrator Sep 24 '13 at 4:28
    
I knew to replace "name" with the name of the folder. –  Agameg Sep 24 '13 at 4:31
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.