1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

[SSH] mv file wrong command

Discussion in 'Site & Server Administration' started by basketmen, Nov 18, 2015.

  1. #1
    i want to move a file to another directory

    i run the command like this
    i am forget add slash in the start of folder name, its should be /home



    now the file is missing, cant find it anywhere
    the file size is 450mb, i try run this command but still cant find it


    anyone have explanation where is the file currently?
     
    basketmen, Nov 18, 2015 IP
  2. OlgaSeCom

    OlgaSeCom Active Member

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #2
    look to the folder where was located username.tar.gz. Now this archive should be there but with "home" name
     
    OlgaSeCom, Nov 20, 2015 IP
  3. Jackel.ca

    Jackel.ca Well-Known Member

    Messages:
    107
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Just to add to this.

    
    mv home /home/username.tar.gz
    
    Code (markup):
    This will rename the file back to the previous file name and move it into the appropriate "home" directory.

    Hope this helps.
     
    Jackel.ca, Nov 21, 2015 IP