Browse: [About the FAQ Forum] [Table of Contents] [FAQs] [Contribute] [CL: Command Line questions]

CL-02 : How do I move/rename a file from the command line?

To move a file:
CODE
$ mv <file-to-be-moved> <destination-directory>

To rename a file:
CODE
$ mv <original-file> <new-file-name>


You can combine the two invocations to move AND rename a file or directory.

Read the manpage of mv for more information.

Reference Link(s):
http://mandrakeusers.org/index.php?showtopic=1628
http://www.mandrakeusers.org/docs/basics/i.../index.html#fad *This link is currently unavailable*
http://www.math.mcgill.ca/new/services/lin...nux_basics.php3
google search vi tutorials

[PREV: "CL-01: How can I edit a file in command line?"] [NEXT: "CL-03: What is the size of a directory?"]