Does nice work on any shell script, or does it work on basic Linux commands only?
For example, if I have a custom shell script that contains a sort function, and I call
nice myscript.sh
would the nice scheduling priority apply to sort in the script?
Would nice still work if myscript.sh is running in the background (using & or nohup)?