Announcement

Collapse
No announcement yet.

my files: root/home/bumpy/home/bumpy need revision

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    my files: root/home/bumpy/home/bumpy need revision

    Unfortunately I Ark recovered my backup files to the wrong directory.
    Current: root/home/bumpy/home/bumpy
    Can't figure out how to move them to root/home/bumpy.
    Suggestions would be appreciated!

    #2
    By "root" I assume you mean "/"

    mv -R /home/bumpy/home/bumpy/* /home/bumpy

    should do it

    Please Read Me

    Comment


      #3
      Re mv -R /home/bumpy/home/bumpy/* /home/bumpy
      Termina; bumpy@peterputer:~$ mv -R /home/bumpy/home/bumpy/* /home/bumpy
      mv: invalid option -- 'R'
      Try 'mv --help' for more information.
      bumpy@peterputer:~$
      Can't figure what to pick - please advise

      Comment


        #4
        Oh sorry, I forget mv doesn't work with -R, try

        mv /home/bumpy/home/bumpy/* /home/bumpy

        Please Read Me

        Comment


          #5
          Originally posted by oshunluvr View Post
          Oh sorry, I forget mv doesn't work with -R, try

          mv /home/bumpy/home/bumpy/* /home/bumpy
          That is a potential dotglob trap.

          By default, in bash, the "*" does not match (glob) files/directories that start with "." (hidden files and directories), unless the dotglob shell option is set. I'd run (to be sure):
          shopt -s dotglob; mv /home/bumpy/home/bumpy/* /home/bumpy/

          You can of course avoid globbing (*) altogether and copy directories:
          mv /home/bumpy/home/bumpy /home/

          Comment


            #6
            That worked perfectly - Thanks for you quick help!
            Last edited by Bumpalot; Sep 18, 2015, 08:55 AM. Reason: removing info

            Comment

            Working...
            X