Questions with rsync

Sharpe, Sam J sam.sharpe+lists.redhat at gmail.com
Sat Jun 13 14:26:48 UTC 2009


2009/6/13 gmspro <gmspro at yahoo.com>:
>
> --- On Thu, 6/4/09, Steven Stern <subscribed-lists at sterndata.com> wrote
>> > #! /bin/sh
<snip>
>> > /dev
>> > /home/*/.gvfs/
>> > /home/*/.google/
>> > /home/*/.dbus/
>> > /home/*/.fonts/
>
> There are no files like
>
> /home/*/.gvfs/
> /home/*/.google/
> /home/*/.dbus/
> /home/*/.fonts/
>
> Can I avoid these lines?

Yes.

> And I have some confusions too.
> /home/* means everything in the /home directory.
> So what does it mean by /home/*/.gvfs?

* expands to everything in the directory, so if you have:

/home/user1
/home/user2
/home/user3

That expands to /home/user1/.gvfs/ /home/user2/.gvfs/ /home/user3/.gvfs/

To put it in English, it means "the .gvfs folders within every
subdirectory of /home/"

--
Sam




More information about the fedora-list mailing list