Jump to content

copying files from one share folder to another in unraid using terminal


Recommended Posts

hello.

i want to copy all files from one share folder to another share folder using terminal by typing "cp -r /mnt/user/Data di Unraid /mnt/user/tes ganti hdd film 2"

but nothing happend. it say : "cp: target '2' is not a directory."

please help me how to do this correctly. thank you.

Edited by onggio
Link to comment
6 hours ago, itimpi said:

You need to put quotes around any path that includes spaces, or precede the spaces with \ characters.   By default spaces are treated as parameter seperators.

thanks man. it works!
how about delete the folder?
rmdir "/mnt/user/tes ganti hdd film 2" ?

Link to comment
2 hours ago, onggio said:

thanks man. it works!
how about delete the folder?
rmdir "/mnt/user/tes ganti hdd film 2" ?

 

I would like to suggest that you try using    mc    (Master Command) which is a Linux file manager which has a almost GUI like appearance.

 

or

 

Google   Linux command line syntax    and read some the resources that you will find there. 

 

You might find my advice somewhat of a bit of arrogance but please understand that it is not.  Using the Linux command line is downright dangerous as the Linux shell always assumes that you are an expert and know exactly what you are doing.  (You will never see a 'Do you really want to do this?")   A small error in a command line parameter (or syntax) and you can destroy thousands of files as soon as you hit the <Enter> key!

Edited by Frank1940
  • Thanks 1
Link to comment
8 hours ago, Frank1940 said:

 

I would like to suggest that you try using    mc    (Master Command) which is a Linux file manager which has a almost GUI like appearance.

do you mean Midnight Commander ?
i searched and googled mc (Master Command) and find nothing, but the keyword point me to Midnight Commander.

could you give me the link where i can learn more about this mc (Master Command)?

 

8 hours ago, Frank1940 said:

You might find my advice somewhat of a bit of arrogance but please understand that it is not.  Using the Linux command line is downright dangerous as the Linux shell always assumes that you are an expert and know exactly what you are doing.  (You will never see a 'Do you really want to do this?")   A small error in a command line parameter (or syntax) and you can destroy thousands of files as soon as you hit the <Enter> key!

thanks for the advice, i really appreciate it and never think that as an arrogance advice.

i will be more careful next time and think twice before entering the linux command line.

Edited by onggio
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...