Jump to content

Copying files in terminal


gogsie
 Share

3 posts in this topic

Recommended Posts

I am trying to copy 2 kexts from a USB to my Extensions folder and terminal seems unbelievably finicky.. (although its me who is wrong) 

 

I have looked online and the command seems to be cp -R as a kext is a directory. 

 

So Surely the command would be:

 

cp - R  Volumes/Untitled/AppleACPIPS2Nub.kext  Volumes/MacBookPro/System/Library/Extensions/     ?? 

 

I keep either getting the error 'No such file or directory'.  Or 'Unable to copy extended attributes to System/Library/Extensions/Contents/MacOS: No such file or Directory.  

 

I am not sure why it is putting Contents/MacOS on the end of what I am typing

 

Can anyone tell me where I am going wrong as I know it must me that I am using the wrong command or need to out in or take out a / or \  or ~   

 

Thanks :D 

Link to comment
Share on other sites

sudo cp - R  /Volumes/Untitled/AppleACPIPS2Nub.kext  /Volumes/MacBookPro/System/Library/Extensions/ then

sudo touch /Volumes/MacBookPro/System/Library/Extensions to have it rebuild the cache, you need sudo to copy the file as root may as well do

sudo chown -R root:wheel /Volumes/MacBookPro/System/Library/Extensions/AppleACPIPS2Nub.kext

sudo chmod -R 0755 /Volumes/MacBookPro/System/Library/Extensions/AppleACPIPS2Nub.kext before the touch command to correct permissions as well

 

 
Link to comment
Share on other sites

 Share

×
×
  • Create New...