Everybody knows the benefit of having an overall idea and infrastructure connectivity of your own local network by looking at our own network diagram.
In linux world, being aware and knowing what processes are currently running at all times is one good practice of managing your linux box. This practice involves monitoring of your memory usage on high and low peak hours of one production day. Looking at processes, this gives you a virtual connectivity of daemon services related to other linux process. A virtual map allowing you to be familiarized with other currently running processes.
Here's one linux command to visually display linux process in a tree map.
PSTree shows running processes as a tree. The tree is rooted at either pid or init if pid is omitted. If a user name is specified, all process trees rooted at processes owned by that user are shown.
PSTree can take a user name as an argument and display all running processes of that specific user. PSTree is part of psmisc rpm package and is installed by default on Fedora 8 with X.
PSTree usage:
Basic tree process
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# pstree
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tree process of specific user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# pstree root
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tree process with numerical sorting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# pstree -n
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tree process showing ASCII characters to draw the process tree
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# pstree -A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tree process displaying PIDS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# pstree -p
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A sample process tree screenshot:
HTH
Subscription
Categories
- HowTos (612)
- Linux Devices (40)
- Linux Diggs (620)
- Linux News (1541)
- Linux Videos (24)
Recent Posts
Blog Archive
-
▼
2007
(340)
-
▼
November
(39)
- HowTo: Strip directory path and filename suffix
- HowTo: Get the Filename Extension Only
- Tailf - watch the linux log file grows
- Fedora 8 with Enlightenment Window Manager
- HowTo: ScreenCasts & Desktop Records via Istanbul
- HowTo: Record Desktop Session via Byzanz
- Linux Scorched 3D Tank Game
- Linux Atomic Battle Tank Game
- HowTo: Display a Tree of Linux Processes
- Howto: 3 Easy Install Steps of Microsoft Fonts in ...
- Howto: Convert PDF to HTML/XML/PNG in Linux
- Livna Repository on Fedora 8
- Linux Action Flight Simulator Game
- Splitting and Merging Multiple Linux Files
- Sort Nth Position of Nth Column of a File in Linux
- Stop, Pause, and Continue A Linux Process
- File Creation without File Opening in Linux
- Concatenate Multiple Files in Linux
- Renaming Files in Linux
- Linux Power Consumption Analysis Tool
- Tail and Head Few Lines of Text Files
- Three Easy Steps for Opera on Fedora 8
- Alternative Search and Replace Tool
- Display Lines Beginning with a Given String
- Spell Check Files via Terminal - Install Howto
- Display Linux Session Jobs
- Get Linux Disk Space and Usage
- Change Linux RunLevels Howto
- Audacious - Install Howto
- Amarok - Howto Install
- Sun Java on Fedora 8 Install HowTo
- My Fedora 8 Diary
- Chikka on Kopete Messenger Howto
- Linux Files and Folders Local Copying
- Linux folders and directories recursive removal
- MailX - Mail Facility via Terminal
- Time zone values interpretation
- Retrieving Linux Standard Base and Distro Information
- Fedora Firstboot
-
▼
November
(39)
Monday, November 26, 2007
HowTo: Display a Tree of Linux Processes
Subscribe to:
Post Comments (Atom)
ILoveTux - howtos and news | About | Contact | TOS | Policy
0 comments:
Post a Comment