Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

How?

share|improve this question

1 Answer 1

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. –  DragonLord May 5 '12 at 3:32
1  
@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.