Q: How to rename file/directory in linux OS?
The "mv" (move) command will also used to rename directory / file in linux systems if the source and destination directory are same.
linux rename directory
[root@server ~#]mv /home/admin/Picture /home/admin/images
#The above command will rename directory "Picture" to "images".
linux rename file
#The above command will rename directory "Picture" to "images".
linux rename file
[root@server ~#]mv /home/admin/Picture/bird.jpg /home/admin/Picture/eagle.jpg
#The above command will rename file "bird.jpg" to "eagle.jpg".
0 comments:
Post a Comment