Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy all the data from usb to specific location on OS X using terminal

Tags:

unix

macos

I need a command which can copy all the data from pen drive to specific location on "OS X" using terminal. And also how to recognize pen drive on OS X.

like image 776
Faisal Ikwal Avatar asked Dec 19 '22 13:12

Faisal Ikwal


1 Answers

On OS X all usb devices are mounted under /Volumes, so

cp -R /Volumes/pendrive ~/somewhereinyourhome

As to recognise a pendrive: type (in xterm) 'df' before plugging it in, type it again afterwards. Whatever new volume shows up thats your pendrive.

like image 192
user1666959 Avatar answered May 26 '23 02:05

user1666959