Moving But No Renaming?
Posted by Pete | Posted in SSH/Bash | Posted on 15-11-2009-05-2008
0
In this short and simple tutorial we will look into why there is no function for renaming in SSH. Or is there!!
Moving files is simple with the command
mv FILE_LOCATION NEW_LOCATION
. Simple well if you have ever wanted to rename a file or folder then you will probably have found that there is no dedicated command to do it. But we can rename using the mv command.
mv CURRENT_NAME NEW_NAME
You can also move and rename at the same time just by putting a location before the new_name
mv CURRENT_NAME /etc/blah/new_folder/NEW_NAME
Simple and easy.


