cp command recursively writes directories
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have a standard .ssh directory in my user home dir.
I have this command:
cp -rf "$HOME/.ssh" "ssh/prod"
I get this situation:
does anyone know why it's recursively writing out subfolders in the destination?
bash cp
add a comment |Â
up vote
1
down vote
favorite
I have a standard .ssh directory in my user home dir.
I have this command:
cp -rf "$HOME/.ssh" "ssh/prod"
I get this situation:
does anyone know why it's recursively writing out subfolders in the destination?
bash cp
did you make a symlink to "ssh/prod" inside "$HOME/.ssh", or make a symlink?
â hhoke1
Mar 23 at 21:10
What are the contents of$HOME/.ssh
?
â terdonâ¦
Mar 24 at 13:59
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a standard .ssh directory in my user home dir.
I have this command:
cp -rf "$HOME/.ssh" "ssh/prod"
I get this situation:
does anyone know why it's recursively writing out subfolders in the destination?
bash cp
I have a standard .ssh directory in my user home dir.
I have this command:
cp -rf "$HOME/.ssh" "ssh/prod"
I get this situation:
does anyone know why it's recursively writing out subfolders in the destination?
bash cp
edited Mar 24 at 13:57
terdonâ¦
122k28229400
122k28229400
asked Mar 23 at 20:28
Alexander Mills
1,885929
1,885929
did you make a symlink to "ssh/prod" inside "$HOME/.ssh", or make a symlink?
â hhoke1
Mar 23 at 21:10
What are the contents of$HOME/.ssh
?
â terdonâ¦
Mar 24 at 13:59
add a comment |Â
did you make a symlink to "ssh/prod" inside "$HOME/.ssh", or make a symlink?
â hhoke1
Mar 23 at 21:10
What are the contents of$HOME/.ssh
?
â terdonâ¦
Mar 24 at 13:59
did you make a symlink to "ssh/prod" inside "$HOME/.ssh", or make a symlink?
â hhoke1
Mar 23 at 21:10
did you make a symlink to "ssh/prod" inside "$HOME/.ssh", or make a symlink?
â hhoke1
Mar 23 at 21:10
What are the contents of
$HOME/.ssh
?â terdonâ¦
Mar 24 at 13:59
What are the contents of
$HOME/.ssh
?â terdonâ¦
Mar 24 at 13:59
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
Well the reason it is recursively writing out subfolders is because you gave it the recursive option. '-r'
"cp -rf" is equal to "copy -recursive -force"
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Well the reason it is recursively writing out subfolders is because you gave it the recursive option. '-r'
"cp -rf" is equal to "copy -recursive -force"
add a comment |Â
up vote
2
down vote
Well the reason it is recursively writing out subfolders is because you gave it the recursive option. '-r'
"cp -rf" is equal to "copy -recursive -force"
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Well the reason it is recursively writing out subfolders is because you gave it the recursive option. '-r'
"cp -rf" is equal to "copy -recursive -force"
Well the reason it is recursively writing out subfolders is because you gave it the recursive option. '-r'
"cp -rf" is equal to "copy -recursive -force"
answered Mar 23 at 22:09
Josh Pickard
565
565
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433153%2fcp-command-recursively-writes-directories%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
did you make a symlink to "ssh/prod" inside "$HOME/.ssh", or make a symlink?
â hhoke1
Mar 23 at 21:10
What are the contents of
$HOME/.ssh
?â terdonâ¦
Mar 24 at 13:59