Re: pictures folder

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Cluff
Date:  
To: Main PLUG discussion list
Subject: Re: pictures folder
On 01/29/2013 12:24 AM, Michael Havens wrote:
> I have a question
> though, I tested it and when I copied a file into /home/bmike1/Pictures
> the file went to the desired directory. Why if I copy it to the desired
> directory directly does it not go to /home/bmike1/Pictures also? It must
> have to do with the order you put the the two directories in


A bind mount works like mounting any other hard drive. Everything below
the place that you mount the filesystem gets replaced by the drive you
mount on top of it. If your filesystem were a tree it would be like
cutting off a limb and grafting a new limb onto where you cut it off.
There is a way to layer up directories, it's call a Union filesystem and
allows you to merge directories together, but they are a little harder
to setup that just a simple mount.

> sudo mount ~bmike1/Pictures
>
> why is it '~bmike1/Pictures' and not '~/bmike1/Pictures'?


the ~ means "home directory of", if you have just a ~ by itself it will
refer to the home directory of the current user, if you put a ~ in front
of a user name, it means the home directory of that user.
Since you were most likely mounting stuff as root, you needed to include
the user name after the ~, otherwise you could have simply put ~/Pictures.
In your case if you were to have put ~/bmike1/Pictures, as root it would
actually turn into the path /root/bmike1/Pictures or if you had run the
command as bmike1 it would have really meant /home/bmike1/bmike1/pictures

Brian Cluff

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss