Hot answers tagged

43

Shift-Command-G in Finder brings up a "Go to folder" dialog. Type in the name of the directory, for example, /usr/local. Finder will show the directory. I use this with Finder in 'View as Columns' While this doesn't give a browsable directory from the root directory down, I've found it quite useful.


40

Enter in Terminal: sudo chflags nohidden directoryname Whereby directory name is the name of the directory that you want to see in Finder. Reverse this by typing: sudo chflags hidden directoryname The Macintosh HD basically resembles the root directory. If you want it to appear on the desktop and in finder change this in the finder preferences. ...


37

All drives (internal, external and networked) get mounted in /Volumes. You should see a folder there with the name of your USB drive as it appears on your desktop or in the Finder.


29

Select the folder you want (or command + A to select all) and then press: Command + right arrow And the left arrow undoes what the right arrow did, should you want to close things back up again.


27

As you've noticed, recent versions of OS X only display generic folder icons in the sidebar. So why does Dropbox get special treatment? The short answer is that Dropbox uses undocumented API to accomplish this. In non-technical speak, it's a special hack that's installed by the Dropbox application. Some curious folks on StackOverflow found the specific ...


21

It's a bit messy, and there is a degree of cross-overs, but the quick tour, without really going into the subfolders of these: /etc, /tmp and /var are just symbolic links to subfolders in /private. /etc generally contains configuration files. /tmp is for temporary files used by running processes (also see /var/tmp) /var is also used for somewhat ...


19

Is there a manual or guide to what all of the built-in directories should be used for? Like what is /home/, or /net/? Take a look at the File System Programming Guide for the most up-to-date information and at man hier in Terminal, which provides a "historical sketch" of the filesystem hierarchy (it's included at the end of this answer for reference). A ...


18

Appplescript & iCal Open Applescript and enter the following code: tell application "Finder" delete folder "folder" of home end tell Replacing folder with the folder you want to delete, and save the file. If the folder you want to delete is outside home directory, (for example the folder /Users) then replace the delete line with: delete folder "...


18

autocd was added in bash 4.0. You can install a newer version of bash with Homebrew and then change the default login shell with chsh: brew install bash;echo /usr/local/bin/bash|sudo tee -a /etc/shells;chsh -s /usr/local/bin/bash After you open a new login shell (or a tab by default in Terminal or iTerm 2), echo $BASH_VERSION should print something like 4....


16

With the assistance of AppleScript you can accomplish this. Open AppleScript Editor, create a new document and paste the following stolen lines: tell application "Finder" try if exists Finder window 1 then set thisPath to (the target of the front window) as alias else set thisPath to (path to desktop) end ...


13

Hallelujah! I figured it out. Okay, so first thing I did was create a new account, as suggested by another answer. The problem did not occur in there, so clearly the problem was limited to my account. I then went into Safe Mode into my account. The problem did not occur as well. So clearly something was loaded in normal mode but not in safe mode that was ...


12

It's got an NFS automounter map mounted on it, so NFS home directories will be automatically available there. Quoting man auto_master: The auto_master file contains a list of the directories that are to be automounted. Associated with each directory is the name of a map that lists the locations of the filesystems to be automounted there. The ...


12

You can use the Finder to navigate inside the bundle, and then drag and drop the file to the 'Open file' dialog/sheet. See a more visual explanation here.


12

The command-line way: Open Terminal (/Applications/Utilities) and type chflags hidden /path/to/folder replacing /path/to/folder with the POSIX-style path to the folder you want to hide (for example, a folder on your desktop called test would be ~/Desktop/test). To unhide it, type chflags nohidden /path/to/folder. The freeware way: I haven't used it, ...


12

If you hold option the (+) button to add a search criteria will become a (…) and an Any/All/None block. Set this to None. For the criteria select Document Container. It won't be in the default list alongside Name, Kind, etc. Select Other… to select it from a list of additional criteria so long it has its own search feature: Set this to the name of the ...


12

Get Info on the folder. Click the icon on the top-left of the window. Press ⌘X or Backspace Alternatively, cd into the directory and run rm Icon$'\r' To delete the icon from multiple folders at the same time, run the following command: find ~/Desktop -name Icon$'\r' -delete Replace ~/Desktop with the containing folder of the folders that you wish ...


9

From the dialog, use Command+Shift+G. This will open a small 'Go to folder' dialog where you can type (or paste) the path that you want including paths within packages.


9

As I know you can not set it to enter in a normal way (but maybe exist some tricky way) but you can change open shortcut by going to System Preferences > Keyboard > Keyboard Shortcuts tab from the left window choose Application Shortcuts and press + to add new shortcut then find Finder in Application and choose Open in Menu Title and press any desired ...


9

Any person new to Apple and Mac would find lot of things un-intuitive or just forced on the user, w/o any options to change it. Or it might be that just many of us had their first experiences on Win/Linux systems. But just found this plugin to finder XtraFinder which among lot of other options allows you to ENTER/RETURN to open a file. Feeling a lot ...


9

In bash, there are two main ways to have spaces in path names: Backslash escape the spaces /path/to/folder\ with\ spaces/ Wrap with quote marks "/path/to/folder with spaces and $variable/" '/path/to/folder with spaces and a literal $/' Double quote marks expand shell variables. Single quote marks do not.


8

PresButan (Mac OS X 10.4.x-10.7.x): An idiotically named solution to a spectacular UI oversight (rather apropos, eh?). It also lets you use either the backspace or delete key to delete files. I can confirm it works (just installed it). Apparently it leverages the accessibility system and uses a daemon to catch the return events. If you are on 10.3-10.5, ...


8

I looked at some of the saved search files in Finder's application bundle, and for example /System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch/search.savedSearch used a format like this for excluding directories: <key>FXScopeArrayOfPaths</key> <array> <string>~/</string> <...


8

I was so sick of this, so I decided to write a fix once and for all. You can use the following AppleScript to resize the column widths when you notice the column is too wide. It works by resizing the Finder window really large, then back to it's original size, triggering a fluid layout resize. tell application "Finder" tell the front Finder window --...


7

The default icons are stored in various locations inside /System/Library - is there a specific icon you're looking for? Finder.app (/System/Library/CoreServices/Finder.app/Contents/Resources) has the Smart Folder icons and the Burnable folder icons for example. Most of the more known icons (eg. pictures for the default folders among many others) can be ...


7

I think you are talking about iOS folder. If so, touch and hold one icon till icons begin dithering. Then drag and drop one icon on an other icon which of two you want to folder together. Your ipad will suggest you a folder name. You may change or assume that. Then push the home button.


7

I personally use symlinks to move all of those directories under my User account. I logged in as root and symlinked all of my directories "Documents' Downloads " Movies", etc and moved them to an external drive. Mac OS sees the changes just fine and points to those directories (on the external drive) automatically and I have had no issues doing it this way....


7

Art, Do you have this working successfully? Have you tried hiding the folders using something like: chflags hidden ~/Documents Then creating a link to it such as (in Terminal): cd ~ mkdir stuff cd stuff ln -s ~/Documents I believe that this will hide the ~/Documents folder from the Finder but it will still be there so anything writing to it will ...


7

Because of a lot of complaints of people used to the Windows way, merging folders is now a feature in OSX Lion : This merge dialog will only show up if: destination folder isn't empty destination folder contents are different from to be copied one So the way to merge folders in an officially supported way is to upgrade to Lion :-)


7

This is a classic use case for rsync: rsync -av /source-path/source-dir /destination-path rsync will copy only new and changed files to the new location. It is important to understand how a trailing slash on the source argument functions. If there is a trailing slash then the contents of /source-path/source-dir will be copied to destination-path. If ...


7

Select the folder you want in the Finder. While it is selected, press Command+T. This will place the selected folder in the sidebar of any Finder window, as well as Open and Save dialog panes. Mac OS X keyboard shortcuts (listed under 'Finder keyboard shortcuts') I should add too that there's a recent folders list available in Finder. With Finder as ...



Only top voted, non community-wiki answers of a minimum length are eligible