Hi everyone!
I recently bought a MacBook Pro and it's my first Mac system, so I'm still getting used to it. I come from an Ubuntu machine, and I hoped that all the terminal commands would work more or less the same way, but I have some problems with the cp command.
In fact, when I try to use the cp command to copy a folder, if the folder ends with / it just doesn't work, but I don't get an error neither.
For example, if I try:
cp -r Hello/ Documents/
It doesn't work. But if I try:
cp -r Hello Documents/
The it works! Any idea why is this happening? For me is much more convenient the first way, cause with the tab button you always autocomplete the folders ending with /.
Thanks for your help in advance! Bye!
I recently bought a MacBook Pro and it's my first Mac system, so I'm still getting used to it. I come from an Ubuntu machine, and I hoped that all the terminal commands would work more or less the same way, but I have some problems with the cp command.
In fact, when I try to use the cp command to copy a folder, if the folder ends with / it just doesn't work, but I don't get an error neither.
For example, if I try:
cp -r Hello/ Documents/
It doesn't work. But if I try:
cp -r Hello Documents/
The it works! Any idea why is this happening? For me is much more convenient the first way, cause with the tab button you always autocomplete the folders ending with /.
Thanks for your help in advance! Bye!