use the mv (move) command
J.
On Thu, 12 Feb 1998, Bruno Simoes wrote:
> Hi all
> Does somebody know if there's some command to *rename* either a file or
> directory in Linux. I don't want to move them to another files/dirs.
> Thank you
> Bruno
>
>
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST:
Hi,
>>"Bruno" == Bruno Simoes <[EMAIL PROTECTED]> writes:
Bruno> Hi all Does somebody know if there's some command to *rename*
Bruno> either a file or directory in Linux. I don't want to move them
Bruno> to another files/dirs. Thank you Bruno
On the same filesystem,
% mv dir1 dir2
Bruno Simoes wrote:
>
> Hi all
> Does somebody know if there's some command to *rename* either a file or
> directory in Linux. I don't want to move them to another files/dirs.
> Thank you
> Bruno
(Hmmm, I smell DOS.)
The command:
mv old new
won't do what you want? (Make sure "new" doesn't al
Use 'mv oldname newname'. Moving and renaming are synonymous.
On Thu, 12 Feb 1998, Bruno Simoes wrote:
> Hi all
> Does somebody know if there's some command to *rename* either a file or
> directory in Linux. I don't want to move them to another files/dirs.
> Thank you
> Bruno
>
>
> --
> TO UNS
You rename a file or directory using the mv command. You don't necessarily
have to move the directory to another location. For example, if you had a
directory full of files in the current path called test, and you issued the
command:
mv test test.renamed
when you listed the contents of the curren
Bruno,
That's exactly what the mv command is for. When you issue a RENAME
under DOS, you are copying the file to a new name and then deleting the
original. What sort of problem do you expect to run into by using the
mv command?
Steve Mayer
[EMAIL PROTECTED]
Bruno Simoes wrote:
>
> Hi all
> D
> Hi all
> Does somebody know if there's some command to *rename* either a file or
> directory in Linux. I don't want to move them to another files/dirs.
> Thank you
> Bruno
mv oldname newname
"mv" actually *moves* files only if oldname and newname are on the
different partitions (filesystems),
Hi all
Does somebody know if there's some command to *rename* either a file or
directory in Linux. I don't want to move them to another files/dirs.
Thank you
Bruno
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble? e-mail to [EMAIL PROTECTED]
8 matches
Mail list logo