Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-13-2010, 04:20 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 21

Rep: Reputation: 1
Nice Value of a Process

Hi, All,
What is the command to display the nice value of a process?
Old 08-13-2010, 10:09 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,910
Blog Entries: 13

Rep: Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972
ps -axl

It will be in the "NI" column.

Old 08-13-2010, 10:19 PM   #3
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Try the following command:
ps -eo pid,user,nice,command | grep <process_name>
You can also see it at 'NI' column in 'top' command.

Last edited by quanta; 08-14-2010 at 08:16 AM.
Old 08-14-2010, 06:14 AM   #4
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
The answers have been already given, but please remember that per the LQ Rules, you shouldn't post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.
Old 08-14-2010, 07:15 AM   #5
LQ Newbie
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 1
Not Homework

Hi, Mara,
I appreciate all the help I get from Linux Questions. I assure you that these are not homework questions. I'm kind of in panic mode. I knew that I could display the nice value of a process using ps, but I just could not remember the options I needed to use. I tried googling, and sifting through the man pages, etc. But you know, sometimes when I'm in panic mode, I miss info which is right in front of me. Asking people that I work with is a total waste of time. So, again, I appreciate all the help I can get from you guys.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating nice value of a process from the data in task_struct? shujaat Linux - Kernel 1 10-14-2009 09:04 AM
Nice level set but process gets wrong priority akring Linux - Kernel 3 11-03-2008 09:20 AM
Nice level set but process gets wrong priority akring Linux - General 7 10-29-2008 04:25 AM
Nice article about the Debian release process rickh Debian 0 11-23-2006 01:34 PM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 10:22 AM

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration