قالب وردپرس درنا توس
Home / Tips and Tricks / 3 ways to see current folder path on Mac

3 ways to see current folder path on Mac



Viewfinder in macOS Big Sur Hero

Every file on your Mac has a folder path that starts all the way from the root folder, but it’s not always easy to see what it is. Here are three ways to see the current folder path on your Mac.

See the path that the Finder status bar uses

Let̵

7;s start with the easiest and most visual way to view the current folder path: using Finder’s own Path Bar feature. Open a Finder window and click the “View” button in the top menu bar. In the menu that appears, click ‘Show path bar’.

Select Show Path Bar from the Finder menu

You will immediately see a new path bar at the bottom of each search window. It will show you the system path to the current folder. You can double click on a folder in the bar to go there quickly.

Path bar in Finder

You can also right-click a folder in the path bar to see a list of options. For example, if you want to copy the path to the selected folder, choose the option “Copy (folder) as path name”.

Copy pathname from Finder Parth Bar

You can then paste the folder path as text wherever you want (for example, in a Terminal window or TextEdit).

Paste the folder path in Terminal

It’s very useful.

See the path from the “Get Info” panel

You can also see the full path for each file or folder using the “Get Info” panel. Open Finder and locate the file or folder in question. Right-click on the item and choose “Get Info” from the menu.

Click on Get Info in right-click menu

In the “Get Info” pane, locate the “General” section and look at the “Where” heading. This will give you the full path.

Get path in Finder Information Panel

You can also right-click the path in the “Where” section and choose “Copy” to quickly copy the entire folder path as text to your clipboard.

Copy the path from the info panel

When you are done, close the “Get Info” window.

See the path in the title bar of the Finder

If you don’t like the path bar at the bottom of the Finder window, you can enable full path display in the title bar and tab bar of any Finder window with an advanced Terminal command. In macOS 11.0 and later, the title bar truncates the full path, but you can hover over it to see the full path.

Open the Terminal app to get started. In the Terminal window that appears, click and paste the following command, followed by Return. (This will set a hidden system flag, close and restart all Finder windows. You will not lose any data in the process.)

defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder

Paste the Finder Path command into Terminal

Once the Finder windows have restarted, you will see the full path of the folder in the title and tab bar.

Path to folder in the top toolbar

Unlike the path bar, this function is only visible. You cannot copy the folder path.

If you change your mind and want to disable the folder path feature, paste the following command into the Terminal app and hit return.

defaults write com.apple.finder _FXShowPosixPathInTitle -bool false; killall Finder

The Finder toolbar is back as it was. When you’re done using the Terminal window, select Terminal> Exit Terminal from the menu bar (or press Command + Q) to exit the Terminal app.

RELATED: How to open the terminal on a Mac




Source link