Linux rename a file syntax
In short, to rename a file:
You can get verbose output i.e. mv command can explain what is being done using the following syntax:Code:mv file1 file2
Sample outputs:Code:mv -v file1 file2
To make mv interactive pass the -i option. This option will prompt before overwriting file:Code:`file1' -> `file2'
Sample outputs:Code:mv -i file1 file2
Code:mv: overwrite `file2'? y
Bookmarks