If you want to turn it off and revert to showing just the active directory in the Finder title bar, head back to Terminal and use this command instead: defaults write _FXShowPosixPathInTitle -bool false killall Finder It’s only when you see the full path in the Finder title bar that you realize that you’ll need to specify the “Volumes” directory first.ĭespite its usefulness, having the full path displayed in the Finder title bar can be a bit cluttered, especially for longer and more complicated paths. This can come in handy when navigating unfamiliar directories or systems, or if you’re new to Unix-based operating systems.įor example, if you wanted to build or modify a Terminal command based on the path in our first example above, you might logically enter /Data/Dropbox/TekRevue/Articles, because that’s what is shown in the Finder path bar. Questions? Comments? Have a fix? Post them below or e-mail us!īe sure to check us out on Twitter and the CNET Mac forums.More importantly, however, this method displays the full Unix path, including root directories like Volumes that are not displayed in the standard Finder path bar. This will include the command in all other Terminal commands and allow you to quickly access it by just entering the script name at the command prompt. If you find you are using this command frequently, you can save it in a simple shell script and then save the script with a unique name to the /usr/bin/ directory. While navigation in this sense is more robust in the Terminal, sometimes using a GUI to manage files is a better option, and this is where this command comes in. Unlike the Finder, which by default hides a number of files based on Finder-specific settings, this command can be used to quickly access these hidden directories. This command is useful especially when you are navigating through hidden directories using the Terminal. The "pwd" command will output the full path to the "present working directory," and the "open" command will then open this directory in the Finder. In this command, the "grave accent" characters surrounding the "pwd" command (they are not apostrophes) will run the pwd command first so the "open" command can then act on its results. When you are in the Terminal, just run the following command: This is actually very easy to do, and makes use of OS X's built-in "open" command, which will open a file type or location using the default applications set in the system's Launch Services. Though options for opening locations in the Terminal exist, people may not be aware of the option for going in the reverse direction, which is to open the current working directory in the Terminal in a Finder window. The utility can be placed in the Dock, but the most convenient location for it is in the Finder toolbar so it can be conveniently accessed from any Finder window. One I commonly use is a freeware utility called " >cd to." which will open the foremost Finder window in the Terminal. Unfortunately the Finder does not have any built-in means to open the current location in the Terminal, but there are a couple of third-party utilities that have this functionality. Sometimes navigating through folders can be easier in the Terminal, and at other times it can be easier in the Finder, but the problem comes when you try to combine the use of the two environments in the same task.įinder to Terminal Placing ">cd to." in the Finder toolbar will make it easy to access. If you are a Terminal user and like to explore and manage aspects of OS X using the command line, one convenient function is to be able to quickly access the current folder either in the Finder or in the Terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |