Results 1 to 3 of 3

Thread: Take proper care to be sure.

  1. #1
    Join Date
    Sep 2007
    Beans
    Hidden!

    Exclamation Take proper care to be sure.

    From the "Learn from my mistakes" department:

    GNU/Linux command line programs are very powerful things that happily do exactly what you tell them to.

    So, when I decided to move all the files from subdirectories into the next directory up (while re-organizing a collection of videos I've made over the years) I used the following command:

    mv ./*/* ./
    (move all files from all subdirectories in the current directory into the current directory)

    I really should have made use of the following command first:

    pwd
    (print working directory, ie. what is the current directory?)

    since, as it turns out, my current directory was not ~/Videos/projects/raw, but was instead ~/

    ouchies.

    Just hoping to spare you my pain =^_^=
    Jill has left these forums due to ongoing double-standards in rule enforcement.

  2. #2
    Join Date
    Jan 2008
    Beans
    1,336

    Re: Take proper care to be sure.

    ouch indeed

  3. #3
    Join Date
    Dec 2007
    Location
    Minneapolis
    Beans
    35
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Take proper care to be sure.

    Ouch!
    Remember, rm with care, and only use sudo rm when all other options have been exhausted.

Tags for this Thread

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
  •