Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

./.#netMHC3.2.py

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

share|improve this question

migrated from stackoverflow.com Jun 9 '10 at 16:24

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

add comment

4 Answers 4

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:

cat .#netMHC3.2.py

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

share|improve this answer
5  
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/.\#netMHC3.2.py –  Rob Jul 11 '12 at 19:07
add comment

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
add comment

This file is created by cvs

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

./.#netMHC3.2.py means that there is a hidden file ".#netMHC3.2.py" under current directory(./)

you can view this file from command line (while with in the same directory as the file) cat ".#netMHC3.2.py"

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.