Q:

Load program binaries at boot

I've written some utility scripts for my linux system. The problem is that the first invocation of programs lag a bit, I suppose it's the disk delay. Is there a way I can cache these scripts without running them at boot so that the usage is smoother?

A:

If it's just for the script, you can load it into the cache with
cat /path/to/script >/dev/null

You can do this as well for any file that's involed, e.g. script interpreters and their shared libraries
exec  >/dev/null
cat /path/to/my/scripts/*
for interpreter in /bin/sh /usr/bin/perl; do
  cat "$interpreter"
  ldd "$interpreter" | sed -n 's!^[^/]*!!; /^\// s! .*!!p' | xargs cat
done

