Results 1 to 7 of 7

Thread: Command

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Beans
    14

    Terminal command - move folder to usb

    Does anyone know what the command would be in terminal to move a folder to a usb flash stick.
    I cant do it mnaually as it says I dont have permissions.
    Last edited by CEW11; January 10th, 2010 at 11:33 PM.

  2. #2
    NoaHall is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Mar 2009
    Beans
    1,562
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Command

    To bring up a file browser with permission -
    Code:
    gksudo nautlius
    To copy the folder command wise
    Code:
    sudo cp -R /home/user/folder/ /media/drivename
    Last edited by NoaHall; January 10th, 2010 at 11:37 PM.

  3. #3
    Join Date
    Dec 2007
    Location
    United States
    Beans
    2,900
    Distro
    Ubuntu

    Re: Command

    Quote Originally Posted by NoaHall View Post
    Code:
    sudo mv -R /home/user/folder/ /media/drivename
    I don't think "-R" is supported by mv.

  4. #4
    Join Date
    Dec 2007
    Location
    United States
    Beans
    2,900
    Distro
    Ubuntu

    Re: Command

    To move:

    Code:
    mv /path/to/directory /path/to/newlocation
    This would move the directory and all contents into the directory specified.

    If you do not have permissions for the move, you can precede the command with "sudo". Note that moving system files in this fashion may break your system, so investigate why you don't have permission.

  5. #5
    Join Date
    Sep 2006
    Location
    Walkhampton, Devon UK
    Beans
    371
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Command

    Quote Originally Posted by blueridgedog View Post
    To move:

    Code:
    mv /path/to/directory /path/to/newlocation
    This would move the directory and all contents into the directory specified.

    If you do not have permissions for the move, you can precede the command with "sudo". Note that moving system files in this fashion may break your system, so investigate why you don't have permission.
    Jut adding to the above, I would "copy" rather than move just to be on the safe side first! Call me over cautious if you like

    Code:
    cp /path/to/directory /path/to/newlocation
    Infamy! Infamy! They've all got it in for me!

  6. #6
    NoaHall is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Mar 2009
    Beans
    1,562
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Command

    Quote Originally Posted by davec64 View Post
    Jut adding to the above, I would "copy" rather than move just to be on the safe side first! Call me over cautious if you like

    Code:
    cp /path/to/directory /path/to/newlocation
    cp needs the -R flag Which is what I meant to wrote first

  7. #7
    Join Date
    Jan 2010
    Beans
    14

    Re: Command

    thanks for the help

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
  •