Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to open a new shell in a low priority (nice value = 19) so that every other command you type in the new shell has a low priority as well?


share|improve this question

The obvious way?

nice -n 19 sh

If you want a terminal window, something like

nice -n 19 xterm

might be more to your liking (unless you prefer gnome-terminal, konsole, etc.).

share|improve this answer
nice -19 sh works but it's monochrome and upper arrow key and TAB don't work properly is there a way to fix that? – user893730 May 5 '12 at 2:12
bash instead of sh if you want bash features. – geekosaur May 5 '12 at 2:13
Whoops, my mistake: nice +19 results in No such file or directory, while nice -19 works as expected. – bwDraco May 5 '12 at 3:32
@DragonLord: csh worked that way. Technically we're both wrong anyway; POSIX killed both of those and it's nice -n INCREMENT COMMAND .... – geekosaur May 5 '12 at 3:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .