Optimize Linux script and add keywords