Re: Why mv have no '-R'
- From: Listen Up <kooperkool@xxxxxxxxx>
- Date: Sat, 5 Jan 2008 07:31:07 -0800 (PST)
Thanks to everybody.
So I can take it this way,
'mv' does not really move data(in one file system), it just renames
something--it can be a file or a directory.
While 'cp' copies data, so I have to 'cp' all the files recurisively,
in order to copy a directory into another one!
But another problem: if file2 already exists, in the following
$mv file1 file2
file1 will be renamed as file2, but file2 still exists 'cause 'mv' did
not move data and file2 won't be overwritten, right?
.
- Follow-Ups:
- Re: Why mv have no '-R'
- From: Wayne
- Re: Why mv have no '-R'
- From: Janis Papanagnou
- Re: Why mv have no '-R'
- References:
- Why mv have no '-R'
- From: Listen Up
- Re: Why mv have no '-R'
- From: Maxwell Lol
- Re: Why mv have no '-R'
- From: Joachim Schmitz
- Why mv have no '-R'
- Prev by Date: Re: Why mv have no '-R'
- Next by Date: Re: Why mv have no '-R'
- Previous by thread: Re: Why mv have no '-R'
- Next by thread: Re: Why mv have no '-R'
- Index(es):