Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I am new to Ubuntu. I am trying to learn how to SRM a file, however I need to know how the directory name in order to type it out in the terminal.

Can someone please help me figure out how to see the full path of a certain file?

I have bitbleach now, and that is working now, but for future reference, how do I access the names of directories. Windows Expolorer used to have a title bar with the full path.


share|improve this question

marked as duplicate by Richard, Avinash Raj, Maythux, nux, Alvar Mar 13 '14 at 21:00

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.

If you know the path and need to type it out quickly, nothing is better than Tab completion, especially with zsh. – Dillmo Mar 13 '14 at 1:12
I figured out a way to delete files with BleachBit, thanks for your answer. But for the other query I still need to know how to see the FULL path of any certain file or folder. – Kalamalka Kid Mar 13 '14 at 1:16
up vote 2 down vote accepted

To display the full path of a file in the terminal just drag the file's icon into the terminal, and the full path of the file will be displayed enclosed by two apostrophes (single quotation mark characters). It's that simple.

share|improve this answer

If you are using nautilus to browse your files, you can toggle the navigation bar by pressing Ctrl + L.

If you are using the terminal, just use pwd to know the absolute path of your current location.

share|improve this answer
And don't forget that space characters need to be escaped within the terminal. If you want to access /path/to/the force then you need to do cd /path/to/the\ force. – Buddyshot Mar 13 '14 at 2:03

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