Results 1 to 5 of 5

Thread: Changing file directory

  1. #1
    Join Date
    Dec 2009
    Beans
    26

    Changing file directory

    Hi, I am new to the Linux community and am loving it so far. Anyways, my question is fairly simple regarding file paths. I have tried to search for the answer, but I don't believe I am writing it clearly so I am going to have to explain what I am trying to do.

    I want my files that are preset as Downloads, Documents, Pictures etc. (mainly the files you see in the quick browser next to the start menu in kubuntu) to open up a location of my preference instead of the default location they open up to. I checked in properties for individual files to see if I could change the file path, but nothing really stood out as a way to do so.

    So, if anyone could inform me on how to change the file path of my folders, I would greatly appreciate it.

    Thanks!

  2. #2
    Join Date
    Dec 2006
    Beans
    1,089

    Re: Changing file directory

    I would do it with
    Code:
    ln -s '/mnt/Storage/My Downloads' ~/Downloads
    where the first part is my existing target folder (that i want the preset folders to use) and the second part is a folder that will be created in my home directory (so if you've already got a Downloads folder then delete it first).
    Last edited by benerivo; December 5th, 2009 at 06:03 PM.

  3. #3
    Join Date
    Dec 2009
    Beans
    114
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Changing file directory

    That's what I would do too, it's simple and it guarantees that any software that uses these folders will still work without you having to modify configuration for all of them, etc.

    'ln -s' creates a "symbolic link", or for short, "softlink" or "symlink" (this is contrasted with a "hard link" which is much less common in practice). They are quite similar to windows "shortcuts" but perhaps more versatile.

    http://kb.iu.edu/data/abbe.html
    http://en.wikipedia.org/wiki/Symbolic_link

    Notice, you could link all of ~/Documents, ~/Photos, ~/Music, etc, to one single directory if you want ("MyStuff" or whatever). There is no limit to the number of softlinks to a file or directory that can exist.

    You will have to transfer the existing contents of the directories first and then erase them (make sure your symlink has EXACTLY the same name as the directory you erase, and is in the same place).
    Last edited by akashiraffee; December 5th, 2009 at 06:17 PM.

  4. #4
    Join Date
    May 2007
    Location
    Ontario Canada
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Changing file directory

    I just answered this question HERE:http://ubuntuforums.org/showthread.php?t=1346849
    He asked 2 hours after you

    he is using gnome but I think that sol'n will work for you.

  5. #5
    Join Date
    Mar 2005
    Location
    Devon, UK
    Beans
    306

    Re: Changing file directory

    Open System Settings, click on About Me, then Paths

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
  •