Negative niceness is very nice

Did you ever want to effortlessly start a process with highest (negative) priority?

Here is a tiny shell function to help with this:

supernice () {
  sudo --preserve-env=PATH nice -n -20 su -c $@ `whoami`
}
If you think you found a mistake in this blog post, or would like to suggest an improvement to this blog post, you can write me an e-mail to the address public dot michael at franzl dot name; as subject please use the prefix "Comment to blog post" and append the post title.
 
Copyright © 2023 Michael Franzl