-2

I run the command cp -r <Folder Name> .<Folder Name>. It have done something, but I cannot find it.

Example:

cp -r Agent .Agent.old    # (There is a dot symbol on the 2nd folder name)
  • 2
    since the new directory starts with a dot, it is hidden. You would be able to see it with ls -a – amisax Aug 13 '18 at 5:18
  • 1
    Please add a more descriptive title – Chrips Aug 13 '18 at 8:02
  • 1
    cp -r is a vendor unique, do not use it, but rather cp -R. – schily Aug 13 '18 at 14:22
1

Prefixing the file name with a dot (.) is usually considered as hidden files. This folder copying should have done in the same way.

try to list hidden items by.

ls -la .Agent.old

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.