Jump to content

CL-02 : How do I move/rename a file from the comma


Recommended Posts

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:

$ mv <file-to-be-moved> <destination-directory>

To rename a file:

$ 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?"]

Edited by ramfree17
Link to comment
Share on other sites

 Share

×
×
  • Create New...