go to  ForumEasy.com   
JavaPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » Java Deploying » Rename File on Unix / Linux
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: Rename File on Unix / Linux
Unix
member
offline   
 
posts: 7
joined: 10/06/2011
from: Cupertino, CA
  posted on: 11/08/2011 01:13:36 PM    Edit  |   Quote  |   Report 
Rename File on Unix / Linux
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.
 Profile | Reply Points Earned: 0

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