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 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.

Thanks!

share|improve this question

marked as duplicate by Richard, Avinash Raj, Ask, nux, Alvar Mar 13 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 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 at 1:16

2 Answers 2

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 at 2:03

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