Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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 searched google and found a list of hidden directories and files in OS X at http://www.westwind.com/reference/OS-X/invisibles.html but .file wasn't listed. The file is 0 size and looks like this

----------   1 root  admin        0 Aug 24  2013 .file

very suspicious?

Running McAfee virus scan there were over 700 additional files that were Not Scanned because they were protected.

  • /private/var
  • /private/etc
  • /Library/Caches
  • /Library/Application Support and others
share|improve this question
    
I have .file as well, dating January 31st. May be just a leftover from an installer. – patrix Mar 18 at 14:24
    
Do not spend money on useless anti virus hoaxware. – Max Ried Mar 18 at 16:38
    
I have .file as well on my Mac (running El Capitan) and my 2 jailbroken devices running iOS 6.1 and iOS 9. – Spotlight Mar 18 at 22:32
    
Side question: is it possible for an empty file to be malicious? – wchargin Mar 18 at 23:17

You can query the package receipt database.

pkgutil --file-info /.file

on a machine running OS X 10.6 the results are

volume: /
path: /.file

pkgid: com.apple.pkg.BaseSystem
pkg-version: 10.6.0.1.1.1249291854
install-time: 1252683091
uid: 0
gid: 80
mode: 0

pkgid: com.apple.pkg.Essentials
pkg-version: 10.6.0.1.1.1249291854
install-time: 1252683099
uid: 0
gid: 80
mode: 0
share|improve this answer

Yes it's normal and the .file file is part of the BaseSystemResources.pkg and Essentials.pkg packages within the InstallESD.dmg disk image of the Install OS X $version.app bundle, e.g. Install OS X Mountain Lion.app, however I do not know its purpose.

enter image description here

share|improve this answer

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.