![]() ![]() (How to open a Finder window from Terminal on a Mac tested with macOS Ventura 13.1, Monterey 12.5, Big Sur 11.0, and 10. Drag the Terminal to your dock since you need to use it. Repeat the previous step for any additional folders. Command-line Interface Terminal In macOS: Open Finder Go Utilities Select Terminal.Two windows, same folder: Note that Finder will not open the same folder twice in separate windows but bring any open windows to the front instead. Append & open (an ampersand followed by the next command) for the next folder you want to open in Finder.Įxample: Type open ~/Downloads & open ~/.Hidden to open your Downloads folder in Finder, and the hidden Mac folder Hidden as well in a separate window.Type open at the Terminal prompt for the first folder you want to open.To open more than one folder (and Finder window) from the Mac Terminal: How to Open a Finder Window from Terminal on a Mac: FAQ Can I open multiple Finder windows in one go? Once in Finder, you can jump to folders swiftly using keyboard shortcuts, too. Type open followed by the folder you want to open at the Terminal window’s prompt.Įxample: Type open ~/Downloads to open the default downloads folder.To open any folder in a new Finder window from a Terminal prompt on macOS: If the Finder window does not jump to the front, click Finder in the Dock.Example: The full command including Finder is open -a Finder. More explicit: The open command will use the default app on your Mac to open a folder-most typically Finder to specify Finder explicitly, use -a Finder. (“open” followed by whitespace character followed by a dot) at the Terminal window’s prompt. ![]() What is special about it is that it always opens a new tab if a Terminal.app window is already open. command.To go to the current folder in a new Finder window right from a Terminal prompt on a Mac running macOS: Just download OpenTerminalHere.zip, extract it, move the bundle to your Library/Scripts folder and drag it from there to your Finder toolbar. You can pipe any path into pbcopy and access it from GUI utilities, e.g. You can also add this Home/User folder to the Finder side bar by opening Finder >. Alternatively click on Go in the menu and choose Home. You can additionally use the clipboard utilities for the command line: pbcopy and pbpaste. Open the Finder and press Command + Shift + H. Not too elegant, but it gets the path of finder's frontmost window, opens a new Terminal tab, and uses cd to get there. Keystroke "cd " & (POSIX path of cwd) as text Set cwd to target of first item of topWnds as alias Set topWnds to every window whose index is equal to 1 as list You can use Automator to create a Service that takes no input in Finder or any application and performs the following in a Run AppleScript action: tell application "Finder" It's different from Windows, but works just as well. With the ability to drag/drop files and folders onto open/save dialogs, the Go To Folder command in Finder, and the ability to navigate the folder hierarchy in Finder by Command-clicking the proxy icon, and the Go menu in Finder, there is little missing you might need for navigation. These approaches handle Terminal/Finder exchanges. Drag it into a Terminal window and the path to the folder will get inserted at the current cursor location. In the other direction, you can use the proxy icon (the folder icon in the Finder title bar). ![]() will open your current working directory in Finder, open. Regarding your edit: Just use the open command in Terminal.
0 Comments
Leave a Reply. |