mv folder/file1 folder/file2
This is the command to move a file to a different directory. if the same directory is specified, the file is renamed instead.
File file = new File("file1"); file.renameTo(new File("file2"));
![]() |
This article is a stub. You can help Programmer's Wiki by expanding it.
Remember to remove this when the stub is fixed. |