Hi Gustin :) Gustin Johnson wrote: > Ralf Mardorf wrote: > >> Hi :) >> >> I'm fine with the selection of applications for 64 Studio 3.0 beta, but >> I'm confused about the behaviour of Ubuntu. >> >> As user (no sudo -i) using the default terminal (emulation), I tried to >> copy all folders and files from the Firefox's default profile to a >> second profile. "Hidden" files were not copied by using the wildcard >> "*", when running the "cp" command, Doing a copy and paste by using >> Nautilus was fine. I don't know this behaviour from any other Linux. For >> example, 64 Studio 2.1 and Suse 11.1 are interpreting the wildcard "*" >> as "*" and won't ignore hidden files. >> >> > cp --help > You probably forgot to use the -a flag > > cp -a .mozilla/firefox/<profile a> .mozilla/firefox/<profile b> >
I run $ cp -a :(. Doing it your way ... spinymouse-s...@64studio:~$ ls -l ~/.mozilla/firefox total 16 drwx------ 7 spinymouse-sudo spinymouse-sudo 4096 2009-05-01 00:32 3ehxz5yh.default -rw-r--r-- 1 spinymouse-sudo spinymouse-sudo 154 2009-05-01 00:31 profiles.ini drwxr-xr-x 2 spinymouse-sudo spinymouse-sudo 4096 2009-05-01 09:02 --TEST--.#2 drwx------ 7 spinymouse-sudo spinymouse-sudo 4096 2009-05-01 00:28 v9wrr9jd.#1 spinymouse-s...@64studio:~$ cp -a .mozilla/firefox/3ehxz5yh.default .mozilla/firefox/--TEST--.#2 ... expectedly the folder /3ehxz5yh.default and not it's content will be copied into the folder /--TEST--.#2 ;). I did it like that ... spinymouse-s...@64studio:~/.mozilla/firefox/3ehxz5yh.default$ ls -al [snip] -rw-r--r-- 1 spinymouse-sudo spinymouse-sudo 0 2009-05-01 09:06 .parentlock [snip] spinymouse-s...@64studio:~/.mozilla/firefox/3ehxz5yh.default$ cp -a * ~/.mozilla/firefox/--TEST--.#2 spinymouse-s...@64studio:~/.mozilla/firefox/3ehxz5yh.default$ ls -al ~/.mozilla/firefox/--TEST--.#2 [snip] ... and there is no .parentlock :(. But inside folders in the 'main' folder hidden folders and files were copied: spinymouse-s...@64studio:~/.mozilla/firefox/3ehxz5yh.default$ ls -al ~/.mozilla/firefox/3ehxz5yh.default/extensions/[email protected]/chrome/content [snip] -r-------- 1 spinymouse-sudo spinymouse-sudo 70 2009-02-15 21:32 ._status-bar-sample-1.xul drwxr-xr-x 6 spinymouse-sudo spinymouse-sudo 4096 2009-04-28 09:26 .svn spinymouse-s...@64studio:~/.mozilla/firefox/3ehxz5yh.default$ ls -al ~/.mozilla/firefox/--TEST--.#2/extensions/[email protected]/chrome/content [snip] -r-------- 1 spinymouse-sudo spinymouse-sudo 70 2009-02-15 21:32 ._status-bar-sample-1.xul drwxr-xr-x 6 spinymouse-sudo spinymouse-sudo 4096 2009-04-28 09:26 .svn If you have 3.0 beta installed too, please try to do the same. I upgraded 3.0 beta3 while Ubuntu main, universe, restricted, multiverse and 64 Studio Hardy backports were enabled, but this shouldn't be the cause for the problem when using cp. > I would personally use rsync: > rsync -rvu --progress .mozilla/firefox/<profile a>/ > .mozilla/firefox/<profile b> > > Note, that slashes are very important to rsync, so you really need to > RTFM before using rsync. > I know this, but back to cp ... > >> I guess there is a POSIX definition ;). >> >> > Not a POSIX thing, you just need to read the documentation. --help > would have probably been all that you needed. > ... I used the -a option and also I used --help, but .parentlock wasn't copied. It's no problem to copy .parentlock by running cp -a .parentlock, but it won't be copied if I run cp -a *. Doing mark all, copy and paste using Nautilus .parentlock will be copied. Cheers, Ralf _______________________________________________ 64studio-users mailing list [email protected] http://lists.64studio.com/mailman/listinfo/64studio-users
