cmdxray / commands / nice

What does nice do?

run a program with a modified scheduling priority (niceness).

▸ Explain your own nice command →

nice examples, explained

$ nice -n 19 tar czf backup.tgz .

  • nicerun a program with a modified scheduling priority (niceness)
  • -nset the niceness (-20 = highest priority .. 19 = lowest)
  • 19value for -n
  • taran argument passed to the command
  • czfan argument passed to the command
  • backup.tgzan argument passed to the command
  • .an argument passed to the command

$ nice -n 10 ./batch-job

  • nicerun a program with a modified scheduling priority (niceness)
  • -nset the niceness (-20 = highest priority .. 19 = lowest)
  • 10value for -n
  • ./batch-joban argument passed to the command

nice flags & options

-nset the niceness (-20 = highest priority .. 19 = lowest)
--adjustmentset the niceness increment

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.