cat 2048 >/proc/sys/kernel/file-max
> I mean as easily as say.... with sysctl under FreeBSD? :P
If you absolutely want to use sysctl(2), you can tune it this way, as well.
Regards, Martin