$ perl -MBSD::Resource -le '@l = getrlimit(RLIMIT_NOFILE); print "soft $l[0]\thard $l[1]"' soft 1024 hard 1024