MozillaZine

Show hidden files and folders

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 14:36, 30 December 2011
Tonymec (Talk | contribs)
(Linux)
<-- Previous diff
Revision as of 02:12, 13 April 2012
Alice Wyman (Talk | contribs)
(Mac OS X - Mac OS X 10.7)
Next diff -->
Line 33: Line 33:
==Mac OS X== ==Mac OS X==
-The [[profile folder]] for your Mozilla application is not hidden but you may need to find other hidden files or folders. There are three ways to hide a file under Mac OS X: [http://forums.macosxhints.com/archive/index.php/t-80720.html]+*'''Mac OS X 10.7:''' Mac OS X Lion hides the ~/Library folder (which contains the [[profile folder]] for Mozilla applications) by default. You can open it by holding down Option while opening the Go menu, then selecting Library. Once it's open, you can drag the small icon of a folder in the header of the Library's window into the Favorites section of the Sidebar, where it will be conveniently accessible whenever you want. [https://discussions.apple.com/thread/3663481] For other solutions see [http://osxdaily.com/2011/07/22/access-user-library-folder-in-os-x-lion/ this osxdaily article] or [http://reviews.cnet.com/8301-13727_7-20082044-263/os-x-lion-where-did-my-library-go/ this CNET article].
 + 
 +*'''Mac OS X 10.6 and below:''' The [[profile folder]] for your Mozilla application is not hidden but you may need to find other hidden files or folders (see below).
 + 
 +'''Showing hidden files and folders on Mac OS X'''
 + 
 +There are three ways to hide a file under Mac OS X: [http://forums.macosxhints.com/archive/index.php/t-80720.html]
* Start the filename with a period. * Start the filename with a period.
Line 60: Line 66:
Mac OS X 10.3 and later includes [http://en.wikipedia.org/wiki/FileVault FileVault]. If you turn it on it creates a separate volume for your home folder and encrypts the contents of it. Several users have reported that when they updated OSX to 10.5.2 via Apple update that the root file system has a /Users/.username folder for each user. This may hide the profile from your Mozilla application. [http://forums.mozillazine.org/viewtopic.php?t=627679] Mac OS X 10.3 and later includes [http://en.wikipedia.org/wiki/FileVault FileVault]. If you turn it on it creates a separate volume for your home folder and encrypts the contents of it. Several users have reported that when they updated OSX to 10.5.2 via Apple update that the root file system has a /Users/.username folder for each user. This may hide the profile from your Mozilla application. [http://forums.mozillazine.org/viewtopic.php?t=627679]
- 
- 
==See also== ==See also==

Revision as of 02:12, 13 April 2012

The operating system hides certain files and folders by default, to reduce clutter and to prevent users who don't know what they're doing from accidentally damaging their system. On Windows and Linux, the profile for your Mozilla application is stored in a hidden location and, to find it, you will need to show hidden files and folders. You may also need to find other hidden files and folders. How you do that depends on your operating system.

Contents

Windows

Navigating to a folder

You can set Windows to show hidden files and folders by changing your "View" settings in Folder Options, as shown here on Windows XP. You can access Folder Options from the "Tools" menu in Windows Explorer (or "My Computer") or from Windows Control Panel. (Note: Windows Vista disables the File/Edit/View/Tools/Help menu in Windows Explorer. You can temporarily enable the menu bar by pressing the <ALT> key. If you want to permanently enable it click the Organize button, go to Layout and select Menu Bar.)

In Folder Options, click the "View" tab and, under "Hidden files and folders", select "Show hidden files and folders" ("Show hidden files, folders, and drives" on Windows 7). You might also want to uncheck the "Hide extensions for known file types" box, so that you can see the file extensions for all files.

If you still can't see the hidden files, you may need to uncheck the "Hide protected operating system files (Recommended)" box. This should only be needed in rare cases, such as showing certain system files. Make sure you recheck this box after completing your task.

Searching for a file

Windows includes a built-in search tool that can be used to search for files and folders. If you are using Windows 2000, the instructions above will also enable searching hidden files and folders. If you are using Windows XP or Vista you must enable searching for hidden files and folders in the search tool itself.

Search tool in Windows XP
Image:WinXP Search.png
  • Windows XP: Click "Start → Search". In the Search Results window, scroll down and click "More advanced options". Check the boxes, "Search system folders", "Search hidden files and folders" and "Search subfolders", as shown above.
  • Windows Vista: (Previous to SP1) From the Windows Start menu, click "Search". In the "Advanced Search" area, select "Include non-indexed, hidden, and system files (might be slow)" [1] In Windows Vista SP1 or later, follow the instructions below for Windows 7, which should be similar.
  • Windows 7: First make sure you have Windows set to show hidden files and folders ("Start -> Computer -> Tools -> Folder Options -> View -> Show hidden files, folders, or drives -> OK"). To search for files or folders in hidden locations, click "Start -> Computer" and, in the window that opens, enter the name of the file or folder in the Search Computer box. [2]

Linux

Linux hides files or folders that begin with a dot. Most file managers (Nautilus , Konqueror, Thunar) have a "View -> Show Hidden Files" command that will make them visible. If it doesn't have that exact command it should have something similar. For example the Dolphin file manager doesn't have that command because it lets you enable showing hidden files by modifying the folders view properties.

Nautilus (the default file manager for Gnome) will not show any hidden files that end with a "~" (such as backup files generated by gedit). You can view them using a terminal window or a different file manager. [3]

Firefox, Thunderbird and SeaMonkey use the native file picker by default (for example, when adding attachments). However, the Linux builds have a built-in file picker that you can enable by setting the ui.allow_platform_file_picker preference to false using either about:config or the Config editor (Thunderbird). It is typically faster and has a "show hidden files and directories" checkbox at bottom left. Unfortunately that checkbox is not sticky, the next time you run the application you need to enable it again. Here's a snapshot:

Image:Xulpicker.png

You could modify filepickerLoad() in chrome/toolkit.jar/content/global/filepicker.js to call the function to show hidden files and folders but it is not recommended. [4]

If you enable "show hidden files" in the file manager when Mozilla calls the native file picker it will also show hidden files. You can also right click on the directory listing in the file picker (such as the Attach files(s) window) and select "Show Hidden Files"... if the option exists.

Mac OS X

  • Mac OS X 10.7: Mac OS X Lion hides the ~/Library folder (which contains the profile folder for Mozilla applications) by default. You can open it by holding down Option while opening the Go menu, then selecting Library. Once it's open, you can drag the small icon of a folder in the header of the Library's window into the Favorites section of the Sidebar, where it will be conveniently accessible whenever you want. [5] For other solutions see this osxdaily article or this CNET article.
  • Mac OS X 10.6 and below: The profile folder for your Mozilla application is not hidden but you may need to find other hidden files or folders (see below).

Showing hidden files and folders on Mac OS X

There are three ways to hide a file under Mac OS X: [6]

  • Start the filename with a period.
  • Use file metadata to set the invisibility flag.
  • Include the file's name in the /.hidden file. (This only applies to files in the root directory)

Normally you're only concerned about files or folders that begin with a dot. You can make them visible by typing the following in a terminal window.

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

This will also cause any file icons to take on a hazy, 50% alpha look. To restore the old settings (hide the files and make the icons look normal) issue the same commands again, but enter FALSE instead of TRUE. [7]

If you need to do this often its more convenient to use a context menu (right click). You can do this by creating a shell script, and then wrapping it in an Automator plugin for Finder. Or you could use a Finder substitute such as XFile and PathFinder that have a option to show hidden files and directories. [8]

You can start the Terminal by:

  • Switching to the Finder
  • Select Applications from the Finder window
  • Open a folder called Utilities.
  • Start the Terminal application by double clicking it.

When you open the Terminal it will show a one line greeting, and a terminal prompt on the second line. The terminal prompt shows the name of your computer plus the current directory. The Terminal provides a command line interface to the UNIX shell, which is just another way to work with your Mac. Rather than clicking on folders, icons or selecting commands from a menu with a mouse you type text commands.

You exit the Terminal like any other application. Click here for a tutorial on how to use the Terminal .

Mac OS X 10.3 and later includes FileVault. If you turn it on it creates a separate volume for your home folder and encrypts the contents of it. Several users have reported that when they updated OSX to 10.5.2 via Apple update that the root file system has a /Users/.username folder for each user. This may hide the profile from your Mozilla application. [9]

See also

External links