View Full Version : Trying to use terminal to uninstall driver.....

02-03-2017, 07:00 AM
Hi all,

Not being very computer savvy using command instructions fills me with a sense of dread so hence why I'm asking fro help.
I have installed a driver on my macbook pro that is now found to be incompatible with OS sierra. The driver is for a particular arduino board. Whilst it is ever on my mac and I try to plug in the arduino (WeMos D1 mini) my mac crashes.
Having researched this issue I need to uninstall the driver using the terminal facility.
The instruction is to type cd/Librarys/Extensions in terminal to bring up the offending drivers name.

Here is the instruction:

When I type this in the terminal all I get is this:


I am very obviously doing something wrong, could anyone help identify what it is?

many thanks in advance


02-03-2017, 12:18 PM
You put an "s" at the end of Library.

02-03-2017, 07:39 PM

Thanks for the help Jake.... Ive now corrected this, what do I need to do now as it still looks different to the one shown as an example
Here's a screenshot of where im at


Any help will be much appreciated

02-03-2017, 07:44 PM
Well, just run the rest of the set of commands. You ran one, now enter the other.

But really, you are playing with matches in a room full of dynamite if you don't know terminal commands and what you are trying to do. Be very, very careful. I presume you have a backup? IF not, STOP, and do one NOW, before you enter a single thing in terminal.

02-03-2017, 07:47 PM
Is there some reason you aren't using Finder, a much safer tool, to delete this file? You should be able to get to that same folder with Finder.

Open Finder, click on "Go" on the top bar of the screen, then enter /Library/Extensions and you will be taken there immediately, where you can see what's there and look for the file you need to delete.

02-03-2017, 09:26 PM
Is there some reason you aren't using Finder,

Or use Find Any File.app to search and use its option to delete on the item found.

- Patrick

02-04-2017, 03:34 AM
Hi Guys,

thanks again for your input.
Your right about the backup, i'm gonna do that before i try anything else, great advice.
Here's a link that shows a walkthrough of what i'm trying to achieve
It shows the three stages
1) Locating the driver
2)unloading the driver
3)removing the driver


i'm guessing it has to be done this way.
So I entered the next line of the command but I didnt get anything like the example, it certainlt hasn't identified the driver i'm lookng for unless of course i've done something wrong, very
possible as I have said this is alien too me, here's the screenshot:

Thanks again for your help


02-04-2017, 09:36 AM
Since you're already in /Library/Extensions just do:
ls -l (that's a lower case L)
look in the listing and see if it's there. You don't need to do the grep part. If it is do the kextunload command but don't put the ./ in front of the name, you're already in the directory.
Assuming no error messages, do the sudo command. MAKE SURE YOU TYPE THE NAME CORRECTLY!!! Be a shame to have to reinstall the whole system.
And yes, it would be easier with Finder. Open Finder and find the file. Open Terminal, put window below the Finder window. Then type in the kextunload command, except for the name...drag the file from Finder to Terminal.
It will add the correct name to the command. Same for the sudo command. This way you will have the correct path and name for the commands.

02-04-2017, 10:09 AM
If the kext is not in that location, you'll have to find where it is. You can use either Find Any File or EasyFind to search the drive for it. Spotlight might work, too, but Spotlight isn't always able to show all files, IMHO. But again, you are working with a very powerful and unforgiving tool. cradom's warning ends to be said again. MAKE SURE YOU TYPE [EVERYTHNG] CORRECTLY!! There is no undo for Terminal.

02-04-2017, 05:04 PM
Guys thanks very much for the help and advice.
It's very obvious I'm out of my depth and in very dangerous waters. Its probably best to leave this well alone before I do something catastrophic!!!

Thanks again