Saturday, October 13, 2012

How to rename a file in linux

using mv(move) you can rename files/directory

If i want to rename file1 as file2

$mv file1 file2 

 another way to rename file names

$cp file1 file2 (it will copy file1 content to file2)
now you can remove file1
$rm file1
 

3 comments:

  1. Hello! Someone in my Facebook group shared this website with us so I came to check it out.
    I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers!
    Terrific blog and amazing style and design.

    My blog post ... waist to hip ratio

    ReplyDelete
  2. I wanted to thank you for this good read!! I absolutely loved every bit of it.
    I have got you book-marked to look at new stuff you post…

    my page :: US real estate directory

    ReplyDelete
  3. I like what you guys are usually up too. This type of clever work and reporting!
    Keep up the wonderful works guys I've incorporated you guys to my blogroll.

    Also visit my page: United States real estate directory

    ReplyDelete