Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Accessing UNIX folders in the GUI via the Terminal UNIX
While looking for an easy way to access root UNIX directories in Finder, I have found following: Typing 'open /usr' in the terminal will open Finder window with the appropriate unix directory (in column view as a folder 'Private'). Also, typing 'open /private' will open a window with the root directories 'cores', 'Drivers', 'etc', 'tmp' and 'var'.

[Editor's note: You can also use the "Go -> Go to Folder" menu item and type the path to the folder to open a sub-folder; this doesn't seem to work (thanks sjonke!) for top-level folders.]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[6,882 views]  

Accessing UNIX folders in the GUI via the Terminal | 5 comments | Create New Account
Click here to return to the 'Accessing UNIX folders in the GUI via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Regarding the editors note
Authored by: sjonke on Jun 08, '01 12:07:41PM

I have never been able to open a hidden folder via the Go To Folder menu in the Finder. I can only do this by using the command-line "open" command. Note, that you can open a SUBfolder of a hidden folder (as long as it is not hidden itself) with the Go To Folder menu. So, for example using Go To Folder in order to open the /usr folder in the Finder does not work. However, you can do this from the command-line via "open /usr"



[ Reply to This | # ]
/private folders in finder toolbar
Authored by: steve on Jun 25, '01 09:22:08PM

After you have used the open /private command in the terminal you can drag and drop the folders to the finder toolbar which will allow you to open the folders from the finder with out having to use the open command in the terminal window.



[ Reply to This | # ]
Regarding the editors note
Authored by: Seraphic on Jul 03, '01 07:14:16PM

Ha!

You all give up at the first hurdle. To open a top level hidden directory from the Finder's "Go To Folder..." command, simply enter the directory name with a trailing slash. For example, "/Developer/"

Any hard-core geeks know why a trailing slash is required for top-level directories but not for others?

Thomas



[ Reply to This | # ]
Regarding the editors note
Authored by: babbage on Jun 08, '01 03:26:40PM

So what you're trying to say is that you have never been able to open a hidden folder
via the Go To Folder menu in the Finder, and that you can only do this by using the
command-line "open" command?

;)



[ Reply to This | # ]
More uses for the open command
Authored by: _merlin on Jun 09, '01 02:04:30AM

You can use the open command to simulate double-clicking any file, folder or bundle in the finder. For example, executing the command 'open /Applications/Mail.app' will launch Apple's Mail application and 'open ~/Documents/letter.rtf' would open a files called letter.rtf in your home directory (assuming such a file exists, of course). You can also specify multiple objects to open. For example 'open ~/Documents ~/Pictures' would open both your Documents and Pictures folders (in separate windows).

You can use this to allow shell scripts (or Perl or Python scripts, for that matter) to open GUI programs, or documents. One use I've come up with is to make a toolbar button in icewn under XWindows that lets me switch back to Aqua. I've set its command to 'open /System/Library/CoreServices/Finder.app' so clicking it will bring the Finder back in front.

Vasantha Crabb



[ Reply to This | # ]