How to move a directory from thumb drive to mac?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to move a directory from thumb drive to mac?
# 8  
Old 03-31-2011
scott already told you: cp -r src dest

---------- Post updated at 12:25 PM ---------- Previous update was at 12:21 PM ----------

Quote:
Originally Posted by Straitsfan
Got the same message today.
...and are still making us guess what you actually typed. If you don't want us to have to guess, tell us what you typed, word for word, letter for letter, keystroke for keystroke.
Quote:
I get the same message with the mv command.
I don't know why that's happening, mv should move entire folders fine. But then, I don't know how you used it either.
# 9  
Old 03-31-2011
Sorry again. I typed

cp vendors /

I read about the -r command after I posted -- but can you tell me more about it? I'm not quite sure what it means. I'm assuming I have to use a new name for the target? I just thought that it would use the same name as the original directory if I didn't give it a new one.
# 10  
Old 03-31-2011
Just type
Code:
 cp -R /Volumes/Name of your Thumb Drive/vendors  /

And it will copy it to the root of your Hard drive! cp -R stands for recursive copy, meaning folder and its contents will be copied.
# 11  
Old 03-31-2011
Quote:
Originally Posted by Straitsfan
Sorry again. I typed

cp vendors /
Smilie Does your system even let you write to the root of your hard drive? I'm hoping you meant cp vendors /some/directory/or/other

If you can't write to the root of your hard drive, that'd also explain why mv didn't work -- though it should have printed a different error message.
Quote:
I read about the -r command after I posted -- but can you tell me more about it?
it means "check inside and copy directories instead of complaining they're directories".
Quote:
I'm not quite sure what it means. I'm assuming I have to use a new name for the target?
If you give it a destination folder that doesn't exist yet (i.e. /directories/that/already/exist/newdir), it will create it. If you give it a destination directory that does exist, it will copy the contents into it.

This is only with -r, though. cp will never create directories unless you give it -r, so without -r it always expects the name of a dir that already exists.
# 12  
Old 03-31-2011
Just to be clear: I cant just type the name of the directory I want to copy -- I also have to specify the name of the new directory as well?

I can't just type

cp -r vendors/ Desktop ?
# 13  
Old 03-31-2011
Quote:
Originally Posted by Straitsfan
Just to be clear: I cant just type the name of the directory I want to copy -- I also have to specify the name of the new directory as well?
Quote:
Originally Posted by Corona688
If you give it a destination folder that doesn't exist yet (i.e. /directories/that/already/exist/newdir), it will create it.
Quote:
I can't just type

cp -r vendors/ Desktop ?
Quote:
Originally Posted by Corona688
If you give it a destination directory that does exist, it will copy the contents into it.
# 14  
Old 03-31-2011
I apologize -- I just didn't get it. But I think I get it now. Sorry for the confusion
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies

2. UNIX for Dummies Questions & Answers

How to move gz files from one source directory to destination directory?

Hi All, Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder. using the find command . Could you please assist me how to put the automation using the shell script . ... (11 Replies)
Discussion started by: venkat918
11 Replies

3. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies

4. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

5. HP-UX

How to move the entire system to a new larger drive?

Hi, I have a problem again and I hope that someone on this forum will help me in solving it. My English is weak, but I'll try to describe it clearly. I have an old computer ( HP B180) with HP-UX 10.20. I've done the hard disk image using G4L and replaced the drive. Old drive has 4.3 GB and 9.1... (7 Replies)
Discussion started by: ftwojtek
7 Replies

6. Shell Programming and Scripting

Move the latest or older File from one directory to another Directory

I Need help for one requirement, I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix. Example: Source Directory : \a destination Directory : \a\b File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt) File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies

7. SCO

Occasional Core Dump with hot swap USB Thumb Drive

Hello Unix World, I've been having this issue for the longest time. Here is my setup OS: SCO OpenServer 6.0 with mp4, mp3 Server: Dell PowerEdge 840, 800, 2900 USB Stick: Patriot 16GB High Speed, and many other different brands. Occasinaly while system is running and USB is pluged in the... (0 Replies)
Discussion started by: miles556
0 Replies

8. Solaris

move DVD drive between domains in M5000

Hi, I 've a M5000 system with 2 domains configured on it. How can i move the DVD from one domain to the other ? so that i can access the drive in the second domain. cfgdevice -l does not work on M5000 (6 Replies)
Discussion started by: fugitive
6 Replies

9. UNIX for Dummies Questions & Answers

How to use GPG for myself on Thumb drive?

I have some sensitive data I would like to keep on a thumb drive. Now I know this is a UNIX/Linux forum and I regret to say that I'm using windows but I'm hoping that is irrelevant. So I install gpg on both windows machines: one at home and the other at work. I encrypt some stuff on the... (2 Replies)
Discussion started by: siegfried
2 Replies

10. UNIX for Dummies Questions & Answers

Move all files in a directory tree to a signal directory?

Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management. Thanks in advance- Brian- (2 Replies)
Discussion started by: briandanielz
2 Replies
Login or Register to Ask a Question