
Ubuntu,Debian,CentOS,Fedora対応
niceコマンドの書式
書式 |
---|
nice [オプション] [コマンド] [コマンドの引数…] |
niceコマンドの主なオプション
オプション | 説明 |
---|---|
-(number) -n(number) |
(number)を付けて実行する。 |
iceコマンドの使用例
xeyesプログラムを実行する
$ xeyes &
xeyesプログラムの優先度を下げて(10を加えて)実行する
$ nice xeyes &
xeyesプログラムの優先度6加えて実行する
$ nice -n 6 xeyes &
psコマンドにlオプションをつけて確認する
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 1000 11366 11358 20 0 56848 4568 poll_s S pts/0 0:00 xeyes
0 1000 11367 11358 30 10 56848 4692 poll_s SN pts/0 0:00 xeyes
0 1000 11368 11358 26 6 56848 4628 poll_s SN pts/0 0:00 xeyes
参照元情報