0

This does not copy the file. I am owner of both directories.

And there are no messages?

cd /home/andy/.mozilla/seamonkey/4e39n1np.default/
cp -f bookmarks.html /home/andy/.mozilla/firefox/mltw8z53.default-1516629000620/

File exists. File can't be moved in file explorer. I even deleted the "Firefox bookmarks file" and copied Seamonkey bookmarks file there??

Adding the output of namei -

f: /home/andy/.mozilla/seamonkey/4e39n1np.default/bookmarks.html

Drwxr-xr-x root root / 
drwxr-xr-x root root home 
drwxrwxr-x andy andy andy 
drwxrw-rw- andy andy .mozilla 
drwxrw-rw- andy andy seamonkey 
drwxrwxrwx andy andy 4e39n1np.default 
-rw-r--r-- andy andy bookmarks.html 

f: /home/andy/.mozilla/firefox/mltw8z53.default- 1516629000620/bookmarks.html

Drwxr-xr-x root root / 
drwxr-xr-x root root home 
drwxrwxr-x andy andy andy 
drwxrw-rw- andy andy .mozilla 
drwxrwxrwx andy andy firefox 
drwx------ andy andy mltw8z53.default-1516629000620 
-rw-r--r-- andy andy bookmarks.html

@wave5459

andyk_~/Downloads$ rm /home/andy/.mozilla/firefox/mltw8z53.default-1516629000620/bookmarks.html andyk_~/Downloads$

File is deleted. But Firefox recreates it. :-(

fixit7
  • 3,127
  • 1
    It should have copied, logically. What happens when you try it using File Explorer?

    And I know you're the owner, but what happens if you try "sudo"? Does bookmarks.html even exist? Are messages maybe piped to /dev/null?

    – lightsong Feb 22 '18 at 01:10
  • file exists. Neither sudo nor file explorer work. – fixit7 Feb 22 '18 at 02:06
  • Add the output of namei -lx /home/andy/.mozilla/seamonkey/4e39n1np.default/bookmarks.html /home/andy/.mozilla/firefox/mltw8z53.default-1516629000620/bookmarks.html, please – muru Feb 22 '18 at 02:24
  • f: /home/andy/.mozilla/seamonkey/4e39n1np.default/bookmarks.html Drwxr-xr-x root root / drwxr-xr-x root root home drwxrwxr-x andy andy andy drwxrw-rw- andy andy .mozilla drwxrw-rw- andy andy seamonkey drwxrwxrwx andy andy 4e39n1np.default -rw-r--r-- andy andy bookmarks.html f: /home/andy/.mozilla/firefox/mltw8z53.default-1516629000620/bookmarks.html Drwxr-xr-x root root / drwxr-xr-x root root home drwxrwxr-x andy andy andy drwxrw-rw- andy andy .mozilla drwxrwxrwx andy andy firefox drwx------ andy andy mltw8z53.default-1516629000620 -rw-r--r-- andy andy bookmarks.html – fixit7 Feb 22 '18 at 02:26
  • please add the output to your question (not a comment). It can be formatted in the question and is easier to read. – guiverc Feb 22 '18 at 02:54
  • I've updated the output in the description for him. And given that you want to forcibly overwrite the bookmarks in firefox, I'd like to see the output of rm /home/andy/.mozilla/firefox/mltw8z53.default-1516629000620/bookmarks.html – lightsong Feb 22 '18 at 03:07
  • If Firefox recreates it, then try closing Firefox and Seamonkey before messing with files in their profile directories. – muru Feb 22 '18 at 04:06
  • @muru While that advice is fine for copying files, I'm not sure if that's the right way to go since Seamonkey and Firefox might have different bookmark structures. – lightsong Feb 22 '18 at 04:10
  • 1
    @wave5459 hence my phrasing "messing with" – muru Feb 22 '18 at 04:12
  • @muru Ha. Noted. – lightsong Feb 22 '18 at 04:13
  • The title of this question should probably be changed from "cp doesn't copy file" to something like "How to import Seamonkey bookmarks to Firefox?" - I don't see any evidence that the file copy operation itself actually failed. – steeldriver Feb 22 '18 at 12:49

1 Answers1

5

Maybe the simplest resolution you seek isn't so much Ubuntu related as it is Firefox related . You want to import your bookmarks from Seaborn to Firefox I presume. Here's a suggested response on a link I found that seems to have worked in that case -

If you have a SeaMonkey version that uses places.sqlite then you can copy this file from the SeaMonkey profile folder to the Firefox profile folder.

http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_SeaMonkey

Source - https://support.mozilla.org/en-US/questions/963390

Let me know if it works.

lightsong
  • 168