Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, I need help with renaming my directory My current path is /sequences/proteins/sequences/original_sequences and i would like to drop the second directory of "sequences" and would like it as /sequences/proteins/original_sequences ...
  1. #1
    Just Joined!
    Join Date
    May 2011
    Location
    Germany
    Posts
    5

    renaming/overlapping directory

    Hello, I need help with renaming my directory
    My current path is
    /sequences/proteins/sequences/original_sequences

    and i would like to drop the second directory of "sequences" and would like it as

    /sequences/proteins/original_sequences

    any idea ?

    Thank you,
    Regards,
    Nandini

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Just move it?
    Code:
    man mv
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    May 2011
    Location
    Germany
    Posts
    5
    thanks. do i just need to type "mv sequences original_sequences" ??
    wont that create
    /sequences/proteins/original_sequences/original_sequences
    the directory of original_sequences has files in it.

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Given the information up to now, this might do the trick
    Code:
    mv /sequences/proteins/sequences/original_sequences /sequences/proteins/
    If all happens on the same filesystem, it will be an instant action.

    Please make sure, that no applicatons access this directory on the files in it while moving.

    Code:
    lsof |grep "/sequences/proteins/sequences/original_sequences"
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    May 2011
    Location
    Germany
    Posts
    5
    great, thanks a lot...
    mv /sequences/proteins/sequences/original_sequences /sequences/proteins/
    worked for me!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...