Usr local bin как найти

Переход к папке не предлагать, он не помогает, в терминале выдает что такой директории не существует. Мне нужно перенести туда ChromeDriver, что бы ранить тесты в PyCharm. Если есть способ просто прописать путь как в тестах в IntelliJ IDEA, поделитесь пожалуйста. Заранее благодарствую за ваше внимание)


  • Вопрос задан

    более трёх лет назад

  • 8154 просмотра

Пригласить эксперта

В Finder то папка видна эта? :-)
Она ДОЛЖНА быть.
Смею предложить — в Finder нажмите command+shift+»точка», именно клавишу с точкой в английской раскладке, появятся скрытые папки и файлы.

Как вы вводили в терминале переход к папке? Возможно Вы забыли слэш / вначале поставить? Попробуйте так: cd /usr/local/bin

В макоси нет папки usr/local/bin, есть папка /usr/local/bin. Это абсолютный путь, он должен начинаться со слеша. Если вы использовали без него, то вы пытались открыть папку внутри текущей директории, поэтому терминал и ругается что такой директории не существует.


  • Показать ещё
    Загружается…

29 мая 2023, в 15:00

5000 руб./за проект

29 мая 2023, в 14:58

40000 руб./за проект

29 мая 2023, в 14:42

10000 руб./за проект

Минуточку внимания

  • #1

Quick question…

I’m setting up Subversion and am planning on using a plugin called SCPlugin to enable me to commit changes etc. through the finder.

What I need to know is how does one locate folders in the Unix file system in the finder?

I need to get to this location in the finder:

/usr/local/bin

When I click the open button which is used to locate the Subversion executable (which in my case is in /usr/local/bin) I can only see regular finder folders… not the unix folders.

How can I get to /usr/local/bin?

  • #2

Method 1: From the Terminal, type «open -a Finder /usr/local/bin».

Method 2: From Finder’s «Go» menu, select «Go to folder…». That’ll bring up a window in which you can type «/usr/local/bin».

  • #3

Method 3: Get a program such as TinkerTool (too lazy to link you) and unhide all hidden files/folders

  • #4

obelix said:

What I need to know is how does one locate folders in the Unix file system in the finder?

First off, I don’t think /usr/local/bin exists by default. You make have to create it.

Methods 1 & 2 above are correct. Do NOT dick around with method 3, IMHO.

To create the folder (if it doesn’t exist already) and open a Finder window:
In the terminal…

sudo mkdir -p /usr/local/bin

cd /usr/local/bin

open .

  • #5

wow- did not know dick was a kosher word here..

dick. hehehehe

  • #6

Baron58 said:

First off, I don’t think /usr/local/bin exists by default. You make have to create it.

Methods 1 & 2 above are correct. Do NOT dick around with method 3, IMHO.

What’s wrong with TinkerTool? It’s only being used to turn on hidden files and directories — no big deal IMHO.

  • #7

aus_dave said:

What’s wrong with TinkerTool? It’s only being used to turn on hidden files and directories — no big deal IMHO.

because those files/folders are hidden for a reason. so people don’t mess with(in) them.

  • #8

The original question was:

obelix said:

What I need to know is how does one locate folders in the Unix file system in the finder?

I agree that it’s not wise to mess with them if you don’t know what you are doing, but that wasn’t the question :rolleyes:.

  • #9

I think you can edit the file «/.hidden» and change what directories are accessible by default through Finder. You might need to reboot for the change to take, though — and always make a backup of any file like this BEFORE you touch it! :D

Apple Footer

  • This site contains user submitted content, comments and opinions and is for informational purposes
    only. Apple may provide or recommend responses as a possible solution based on the information
    provided; every potential issue may involve several factors not detailed in the conversations
    captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of
    any proposed solutions on the community forums. Apple disclaims any and all liability for the acts,
    omissions and conduct of any third parties in connection with or related to your use of the site.
    All postings and use of the content on this site are subject to the
    Apple Support Community Terms of Use.
    See how your data is managed…

Copyright ©
Apple Inc. All rights reserved.

/usr/local/bin and /usr/local/sbin are well worth adding to your path, as a lot of makefiles for source builds are defaulted to install there.

If you use MacPorts, it’s worth adding /opt/local/bin and /opt/local/sbin as well.

The best way to do this is to add

export PATH=/usr/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:$PATH

to the .bashrc file in your home directory (which is hidden, so the CLI is the best way to to do this), or, if you want to change the system wide path, add the same line to /etc/bashrc (not hidden), but you will need to sudo to do this.

If you don’t have a .bashrc in any user’s home, you can make one and add this line to it, but remember to change the permissions on the file you create to make it readable by the user in question (obviously not relevant if you’re doing it for your own profile).

The $PATH at the end appends the system default path to whatever you put before. Note that the system searches for binaries in the order of paths given, so if you install a binary in /usr/local or /opt/local that is also installed by default on the system, the versions you install will be found first, which can (though rarely) upset things. It is worth watching out for.

Good information is here.

I should note that the above assumes you are using Bash for the shell, which is the default on Mac OS X v10.4 (Tiger) and Mac OS X v10.5 (Leopard), but not on earlier systems, which used tcsh instead, which has a different syntax.

I hope that helps…

Have you ever noticed that you hardly ever see any system files on your Mac? Although macOS occupies tens of gigabytes on your hard drive, there is no trace of it.

The system is configured this way because macOS prefers to hide critical data from users, to protect them from accidentally deleting or tampering with files that can harm their Mac.

However, sometimes users who know what they are doing need to access hidden files and folders like usr, local, bin. How can this be done?

In this article, we will explain what is Mac bin folder and usr folder, how to open bin files on Mac and what is the safest way to manage hidden files.

What is a bin folder?

Looking at the name, you might assume that the bin folder is the same as the Trash, but that couldn’t be further from the truth.

Bin stands for “binary”, a directory of all the executable commands for your applications. Advanced users may want to access the bin folder to change various application configuration files or license numbers, for example.

What is a usr folder on Mac?

Another hidden Mac destination is the usr folder. His name doesn’t just come from “user” as most people think. It’s short for “user-related,” and it contains various read-only data, libraries, documentation, binaries, and other read-only software—everything that your Mac’s applications need to run smoothly, but that users never do. they need. I need to see.

Why is usr not visible on Mac?

The reason macOS hides folders like usr and bin is the same reason pipes and cables are hidden in your house. They’re not pretty, and something can go seriously wrong if you modify them in a way they’re not supposed to be modified.

However, macOS also offers some options for advanced users to access all parts of the system. Users can do this through Finder, Terminal, or other third-party applications.

The general problem with usr, local, bin and similar folders is that they are simply not visible. You can’t even know they’re there unless you’re specifically looking for them.

The first thing you can do is make all invisible files visible. To do that, go to Finder and then use the shortcut Shift + ⌘ + . (point).

You will see some new files appear in light gray with a dot before their name (eg .Trash).

So where is /usr/local/bin? To locate it:

  1. From the menu bar, select Go ➙ Computer (Shift + ⌘ + C)
  2. Click Macintosh HD
  3. Select usr ➙ local ➙ bin or any other file path you need

If you are working with files and folders in Finder all the time, moving files, copying them, transferring them between devices, etc., you can benefit from using a powerful file manager, like Commander One.

Commander One is a great alternative to Finder. This dual pane file manager makes managing any file and folder a breeze. Browse two separate archive environments in one place, use a quick search that allows regular expressions, transfer files to iOS or Android, connect to your server via FTP, unzip any file with the archive tool, and much more.

To show hidden files and folders in Commander One, simply go to View ➙ Show Hidden Files (Shift + Option + ⌘ + H) in the menu bar.

✕ Remove app banner

How to find a bin folder in Terminal

Since macOS is based on UNIX system which is mainly managed by command line interface, Mac has its own version called Terminal.

Terminal is a utility that gives advanced users access to just about everything on their Mac through special commands.

To open Terminal, go to Applications > Utilities > Terminal.

A simple command to list all files and folders in the current directory is ls -la followed by Return. You will also immediately see all the hidden files in your directory (the ones with a dot in front of them).

To go up one level in the folder structure, type cd ../ and then Return. To go down one level, type cd [folder name] and go back.

This is how you can find any file or folder on your Mac.

How to find folders like /usr/local/bin on Mac

Both Finder and Terminal are good ways to locate folder paths like /usr/local/bin. But most users will probably be more comfortable with something more visual.

CleanMyMac X is an easy-to-use Mac optimization app that makes all kinds of complex processes work at the click of a button. You can get rid of junk, scan for malware, completely uninstall apps, and much more.

One of the best features of CleanMyMac X is called Space Lens, which gives you a very visual representation of your Mac’s folder structure, as well as all the files.

To use the spatial lens:

  1. Inicie CleanMyMac X
  2. Navigate to Space Lens in the sidebar
  3. Click Scan
  4. Just go through the folders you want. Larger folders will be visually represented on the right. All hidden files will be visible by default.

✕ Remove app banner

As you can see, usr, local, bin, and other hidden folders can be accessed quite easily, either through Finder, Terminal, or with the help of powerful applications like Commander One and CleanMyMac X. Now you can. everybody!

Best of all, Commander One and CleanMyMac X are available free for seven days through the trial version of Tecnologar, a platform with more than 240 applications for Mac and iOS for any task you can imagine, from managing your budget (MoneyWiz) to automatic file hiding (Spotless). Try all the Tecnologar applications today at no cost and watch your productivity increase!

Понравилась статья? Поделить с друзьями:
  • Как найти компланарность векторов по координатам
  • Как найти ник в телеграмме на телефоне
  • Как найти подгруппу химического элемента
  • Как составить текст для статьи
  • Как составить объявление по подбору сотрудников