Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got a user and I want to move all the folders that Ubuntu created in the user folder such as desktop, documents, downloads etc to different location. How can I do that? I'm using LVM:

    /dev/mapper/server-root
                      822G  2.4G  777G   1% /
none                  1.5G  668K  1.5G   1% /dev
none                  1.5G  176K  1.5G   1% /dev/shm
none                  1.5G  372K  1.5G   1% /var/run
none                  1.5G     0  1.5G   0% /var/lock
/dev/sda1             228M   23M  194M  11% /boot
share|improve this question
2  
What location do you want to move them to? Another user in /home? Or elsewhere in the system? –  Kris Harper Aug 26 '11 at 11:33
    
What have you already tried? What happened when you tried it? –  Amanda Jan 25 '12 at 21:40

1 Answer 1

I usually have a data partition automatically mounted in /media/data on which there are directories Documents, Pictures, etc.

I remove the corresponding folder in my home and create symlinks to those in /media/data, for example

rmdir ~/Documents/
ln -s /media/data/Documents ~/

This work after first login, when the directories are still empty. In your case you could move them first

mv ~/Documents/ /media/data/
ln -s /media/data/Documents ~/
share|improve this answer
    
no i dont want to see these folders there, thats the point. i want to make the folder "clean" and able to get to these folder by typing for example /others/documents or whatever –  Amir Ashkenazi Aug 26 '11 at 14:09
    
@amirwebdeveloper: so in the above answer do not execute the symlink step (ln -s ...). –  enzotib Aug 27 '11 at 5:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.