"rcp -r" will truncate the first character of a directory name which is copied recursively.
Issue
- "rcp -r" will truncate the first character of a directory name which is copied recursively.
Run these commands:
rm -rf d1 d2
mkdir d1 d1/subdir1 d2
rcp -r d1/subdir1 localhost:d2/
ls d1
ls d2
- output is:
subdir1
ubdir1 <=== missing leading s
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.