onggio Posted April 15, 2022 Share Posted April 15, 2022 (edited) 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 April 15, 2022 by onggio Quote Link to comment
itimpi Posted April 15, 2022 Share Posted April 15, 2022 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. 1 Quote Link to comment
onggio Posted April 15, 2022 Author Share Posted April 15, 2022 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" ? Quote Link to comment
Frank1940 Posted April 15, 2022 Share Posted April 15, 2022 (edited) 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 April 15, 2022 by Frank1940 1 Quote Link to comment
onggio Posted April 15, 2022 Author Share Posted April 15, 2022 (edited) 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 April 15, 2022 by onggio Quote Link to comment
trurl Posted April 15, 2022 Share Posted April 15, 2022 11 minutes ago, onggio said: Midnight Commander That is what he meant 1 Quote Link to comment
trurl Posted April 15, 2022 Share Posted April 15, 2022 There is also Dynamix File Manager plugin for Unraid 6.10rc3+ Quote Link to comment
Recommended Posts
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.