go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Rename File on Unix / Linux
 
Subject: Rename File on Unix / Linux
Author: Unix
Posted on: 11/08/2011 01:13:36 PM

To rename a file, you can do it like this:

$ mv -i dir1/file1 dir2/file2

If file2 doesn't exist, it'll be created, but if it exists, it'll be overwritten.



References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.