I have no experience in C, but…
If I wanted to write a program, in C, for a linux system, that would sync a local file/directory to a remote file/directory, automatically when the local file/directory is updated; what libraries or built-ins should I look at?
I looked at inotify so far, but I really lack the terminology to search for this without some help.
Edit
This is merely an exercise.
inotify‘s the way to go. Struggle through it, when you get stuck come back and ask more specific questions here.Here’s an example to get you started (excuse the C++ output statements, imagine
printfinstead):