lsusb icon indicating copy to clipboard operation
lsusb copied to clipboard

system_profiler command not found

Open hotwilson opened this issue 7 years ago • 1 comments

After I install using brew and run lsusb I'm seeing: /usr/local/bin/lsusb: line 7: system_profiler: command not found The system_profiler command by itself does not work. But this does work: /usr/sbin/system_profiler

My machine:

sw_vers :: ProductName: Mac OS X ProductVersion: 10.13.3 BuildVersion: 17D102

uname -a :: Darwin Wilsons-MacBook-Pro.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

hotwilson avatar Apr 10 '18 04:04 hotwilson

"Command not found" is normally an error message related to an incorrect PATH environment variable. This is reinforced by the fact that if you spell out the entire path to the command, it works.

I suppose you could change line 7 to spell out the path.

johnfreed avatar Apr 10 '18 07:04 johnfreed