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

I wanted to add classpath to my jdk. While searching a way to do it I notice everyone open .profile file using terminal. But when I want to open and edit it with a text editor I couldn't see that file in Home folder.

Can someone tell me why is this. And also if possible how can I access .profile in home folder the gui way

share|improve this question
Press Ctl+H while you're in nautilus. – RobotHumans Dec 25 '12 at 15:22
Open terminal and try cat ~/.profile. Check the output, that is your .profile. – nickanor Dec 25 '12 at 15:28
up vote 3 down vote accepted

The reason you can't "see" .profile" is because the ls command does not display file and directory names starting with . - this is the original device for "hiding" files in Unix.

You can still edit .profile by typing emacs .profile (or whatever editor you wish to use.)

And, you can "see" all your files by typing ls -al which asks for the "long form" (more informative) output for all specified directory or file arguments.

share|improve this answer

in Linux and Unix systems, the files starting with . (a dot) are hidden files. To see them with the ls command, add -a or -A at your ls.

ls -a /path/to/dir


ls -A ~

From the manual man ls:

   -a, --all
          do not ignore entries starting with .

   -A, --almost-all
          do not list implied . and ..
share|improve this answer
Also note files ending with a ~ may also be hidden. – Wilf Jul 12 '14 at 16:07

GUI way to show a hidden file or folder

Hidden files and folder have names that start with a . (dot character). To toggle show/hide hidden files or folders use the keyboard shortcut Ctrl+H.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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