Super User is a question and answer site for computer enthusiasts and power users. 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 is probably trivial, but I'm quite new to Linux and I was unable to find any info online.

In a folder, I can execute the command find . -regex '.*py' and get the following result:


Is this a file in the current directory? What can I do to display its contents?

share|improve this question

migrated from Jun 9 '10 at 16:24

This question came from our site for professional and enthusiast programmers.

up vote 7 down vote accepted

Files which start with a '.' are hidden files. I don't know of a standard to use the '#' on certain kind of files. I've seen it on "backup" files generated by text editors.

To display the contents of a file use the "cat" command:


'.' and './' are the current directory in which you are working (use pwd to know where you are).

share|improve this answer
You might be better off using less, or piping it to less if you absolutely need to use cat. That way it's readable id it's more than a page. – MDMarra Jun 9 '10 at 16:32
Thanks - that makes sense. When I am in the same directory and use the cat command or try to download over SFTP, I get "no such file or directory". Could this be a permissions issue? – Martin Wiboe Jun 9 '10 at 16:34
try escaping the #, less /path/to/.\ – Rob Jul 11 '12 at 19:07

As Fernando said, the '.' before the file name means it's hidden. Hidden means that by using the ls command, the hidden file won't be part of the output. You can see them by using ls -a however.

This also applies to file managers. By default most graphical file managers won't display hidden files unless you tell them to.

Hidden files in your home directory are typically used to store configuration data for your applications. ~/.bashrc would contain any configuration data for your Bash shell, and it would only apply to your account.

share|improve this answer

This file is created by cvs

I think this is created when a cvs update fails and cvs backs up original file.

./ means that there is a hidden file "" under current directory(./)

you can view this file from command line (while with in the same directory as the file) cat ""

share|improve this answer

Well, a very old question, but the correct answer is not here so...

#filename# is a working file that emacs uses. Like an autosave file or something, I guess. If your regular file, filename, without the fore and aft hashtags is up-to-date, then you can delete the #filename# file.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .