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 03-25-2009, 02:08 PM   #1
LQ Newbie
Registered: Jan 2008
Posts: 13

Rep: Reputation: 0
how to view all processes using top command

In windows; when using task manger there is a scroll bar that lets you see all the current processes that are running even if the window is too small to display them at one time.

How does one do this in Linux using TOP? I know there are more than X processes running because i can change the terminal window size and see more lines but how do I know I have seen ALL that is running? Something like being able to page up/down in the list?

Thank you...
Old 03-25-2009, 02:25 PM   #2
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
There is no support for what you want to do. The top utility is not designed to display all processes but only a selected number of the 'top' processes. See the top man page.
Old 03-25-2009, 02:30 PM   #3
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
I don't know if top can do this interactively, but top in batch mode will output all the currently running processes:
top -b -d 1 > ~/top.list
That produces a file which is appended to every second, and it lists all current running processes. If you were feeling up to a bit of a script, you could wrap it in a while loop and view a temporary file to simulate the interactive view, I'm sure.

edit: Otherwise, take a look at htop, which allows you to scroll across and down the list of top processes. In fact, I've replaced top with htop since it's more colourful!

Last edited by pwc101; 03-25-2009 at 02:32 PM.
Old 03-25-2009, 03:43 PM   #4
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,241
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
you could always run htop instead of top and then use pgup and pgdn to scroll up and down through the process list.


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
View Progress or Timer of processes !! arunabh_biswas Programming 2 10-04-2008 04:58 PM
more processes showing on top bhert Linux - General 6 06-17-2007 11:09 AM
Any way to view the current processes? alyks SUSE / openSUSE 7 10-18-2004 11:04 AM
How do i view processes and stop them? rid00z Linux - General 2 02-10-2004 05:30 PM
how do i view processes in the console? ShawnD Linux - General 1 07-15-2002 09:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 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