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 found a mistake in this blog post, or would like to suggest an improvement to this blog post, please me an e-mail to michael@franzl.name; as subject please use the prefix "Comment to blog post" and append the post title.
 
Copyright © 2023 Michael Franzl