Results 1 to 7 of 7

Thread: can't rename using mv command

  1. #1
    Join Date
    Jan 2007
    Beans
    6
    Distro
    Ubuntu 6.10 Edgy

    can't rename using mv command

    i'm trying to rename an abiword doc from "test" to "test1", I get this message.

    mv test test1
    mv: cannot stat `test': No such file or directory

    What am I missing? Thanks, jola

    lubuntu 12.04
    Thinkpad R51
    1.5ghz
    1.2 RAM
    30gHD

  2. #2
    Join Date
    Jun 2008
    Location
    NYC
    Beans
    36
    Distro
    Ubuntu Studio 11.04 Natty Narwhal

    Re: can't rename using mv command

    are you sure the filename dose not have any extensions that you could be missing ? or was this file made by another user for which you do not have permissions to rename or mv in this case ?!
    Thinkpad X61
    Thinkpad R500
    Not getting any younger thinkpads:
    Thinkpad R40 - RIP

  3. #3
    Join Date
    Jul 2011
    Location
    The Great Ocean
    Beans
    Hidden!
    Distro
    Lubuntu

    Re: can't rename using mv command

    make sure you are in the correct directory so that mv can find test

  4. #4
    Join Date
    May 2012
    Beans
    10

    Re: can't rename using mv command

    you are forgetting the file extensions.
    your command will be like,

    mv test.txt test1.txt

    -mark solved, if satisfied
    Last edited by imran042; May 3rd, 2012 at 04:27 PM.

  5. #5
    Join Date
    Nov 2008
    Location
    Here, There, Everywhere
    Beans
    1,163
    Distro
    Xubuntu

    Re: can't rename using mv command

    Linux file system is case sensitive, so make sure it is not name File or FILE instead of file

  6. #6
    Join Date
    Apr 2012
    Beans
    Hidden!

    Re: can't rename using mv command

    ls -l test * if it shows up..then you are in YOUR home directory*

    *if not...you arent*

  7. #7
    Join Date
    Apr 2012
    Beans
    Hidden!

    Re: can't rename using mv command

    or...maybe test never was written..or saved.

    to verify your mv function is working.
    try this.

    echo "this is a test" > newtest
    cat newtest #it should say this is a test
    touch newtest1
    cat newtest1 #it will be blank#
    mv newtest newtest1
    cat newtest1 #it should say this is a test#


    fun with command lines...Enjoy

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •