LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-13-2010, 05:20 PM   #1
jaypas
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?
Thanks,
August
 
Old 08-13-2010, 11:09 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,333
Blog Entries: 12

Rep: Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729
ps -axl

It will be in the "NI" column.

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

Rep: Reputation: 100Reputation: 100
Try the following command:
Code:
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 09:16 AM.
 
Old 08-14-2010, 07:14 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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, 08:15 AM   #5
jaypas
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.
Thanks,
Jaypas
 
  


Reply


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 10:04 AM
Nice level set but process gets wrong priority akring Linux - Kernel 3 11-03-2008 10:20 AM
Nice level set but process gets wrong priority akring Linux - General 7 10-29-2008 05:25 AM
Nice article about the Debian release process rickh Debian 0 11-23-2006 02:34 PM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 11:22 AM


All times are GMT -5. The time now is 08:18 PM.

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