Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to synchronize all the PDFs from one directory (my Zotero library) to Dropbox. Finally, I want to have a list of all the PDFs, not the directory names.

I successfully synchronized all my PDFs with the following command:

rsync -az --include="*/" --include="*.pdf" --exclude="*" \ 
--prune-empty-dirs /zotero /dropbox

I think I can easily set up a cron job to redo that task every day, but haven't tried that yet.

But now my folder on Dropbox still has all the directories with the PDFs in it (e.g. 6NVTACJH > xyz.pdf)

My problem: I would love to only have all the pdfs listed in one directory. Following an advice from the web, I tried to find all pdfs and create a hardlink.

But this command does not work yet.

ln $( find -name="*.pdf" -type f - links 1 ) /dropbox

Can you please help me with that last command?

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.