Is there any way to keep unix "kill" running all the time so when my .sh script tells to kill some process, it's already in RAM-memory and runs little bit faster?
Is there any way to keep unix "kill" running all the time so when my .sh script tells to kill some process, it's already in RAM-memory and runs little bit faster?
Please explain why you think this is a worthwhile way to gain speed. What shell are you running? How much extra speed do you need, or think you need?
Unless you're running on a spinning hard disk, and it's spun down, the delay to run '/bin/kill' will be insignificant. If your script is looping, the first time it runs it'll be loaded into the disk cache. Thereafter, it will be present in cache and loaded from there.
Furthermore, 'kill' is a bash builtin, so when you run it as 'kill' (as distinct from '/bin/kill') it's already "in RAM" and will already run as fast as it possibly can.
To show that 'kill' is a bash builtin, type this command in a Terminal window: