Command to rename directory and file in Linux

FREQUENTLY ASKED QUESTIONS  (Linux)
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
[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:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons