Results 1 to 4 of 4

Thread: mv command

  1. #1
    Join Date
    Oct 2013
    Beans
    70

    mv command

    I'm trying to add some new aircraft into my installation of Flightgear. I have downloaded two zip files into my /Home/Downloads directory. I now need to move them to my /usr/share/games/flightgear/Aircraft directory and then unpack them. I have started with sudo -i to give me root permission but no matter how I try I keep being told that folder 'Spitfire' does not exist!
    Please help, I'm close to tearing my hair out!!
    Thanking you.
    Toni.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,616
    Distro
    Ubuntu

    Re: Help with the mv command please!

    When you invoke sudo -i, you get put in root's home directory.
    /root

    So you will need to either move (cd) in your home folder or mv with the full path
    mv /home/you/folder /place-it-goes/folder
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help with the mv command please!

    Hi Toni_Vines.

    'sudo -i' changes your current directory, so I think that's why you can't find the directory (besides I wouldn't recommend it since you will be doing all commands as root)/

    I'd recommend adding the mv command to the sudo. For instance, if you are at your home directory
    Code:
    sudo mv -v ~/Downloads/Spitfire/ /usr/share/games/flightgear/Aircraft/
    or moving to the Downloads directory:
    Code:
    cd Downloads
    
    sudo mv -v Spitfire/ /usr/share/games/flightgear/Aircraft/
    Hope it helps. Let us know how it goes.
    Regards.

  4. #4
    Join Date
    Oct 2013
    Beans
    70

    Re: Help with the mv command please!

    Thank you both for your response. papibe, you're a star! That worked like a charm, thanks!

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
  •