Linux core application command quick query serialization 11: pstree: displays the Process status tree

Source: Internet
Author: User
Tags superuser permission
Pstree: displays the Process status tree.

Purpose: run the pstree command to list the current processes and their tree structure.

Usage: pstree [Option] [pid | user]

The main options are as follows.

--A: displays the command and complete parameters of the execution program.

--C: cancel the program with the same name and merge and display the program.

--H: process the output result and highlight the program being executed.

--L: displayed in long usage.

--N: sort by PID size.

--P: displays the PID.

--U: displays uid information.

--G: Display with VT100 Terminal encoding.

--U: displays with UTF-8 (UNICODE) encoding.

Note: The data obtained by using the ps command is accurate, but the data is huge. This is not easy to grasp the overall situation of the system. The pstree command can make up for this defect. It displays the current execution program in a tree structure. The pstree command supports specifying a specific program (PID) or user as the start of the display.

The application example is as follows.

A sub-process may be generated when the process starts. Run the pstree command to view the information easily. Run pstree with the superuser permission:

# Init-+-apmd

|-ATD

|-Bdflush

|-Gconfd-2

|-TPD-binary --- TPD-binary-+-x

| '-Startkde-+-kwrapper

| '-Ssh-agent

|-GPM

|-HTTPd --- 8 * [httpd]

......

If the pestree command has the same program name, it will be automatically merged. All "|-HTTPd --- 8 * [httpd]" indicates the child processes generated by eight httpd processes in the system.

 

 

Title: Fast query of Linux core application commands

Author: Cao jianghua,Edited by Fang Jianguo

ISBN: 978-7-121-11149-5

Publication date: 2010Year7Month

Pricing:59.00RMB

Start: 16Open

Page number: 528Page

Internal Capacity Simplified Introduction

After more than a decade of development, the Linux operating system has been continuously improved and more applications have been made. Now, Linux Desktop is relatively mature, but the command line technology is still the core technology of Linux.

This book introduces the functions, syntaxes, options, typical application instances, and precautions of core management commands (including the latest virtualization management commands and SELinux management commands) under Linux Command lines, every command is described in detail and a large number of instances are described. This gives readers a quick and in-depth understanding of commands in Linux. The book is classified according to the functions of Linux commands for readers to query. Before reading this book, you do not need to have too much background knowledge, whether you are a Unix user, a new linux user, or even a Windows user who has never been in touch with Linux, you can easily understand and master the content, and quickly understand and use the Linux system of each release. This book uses the commands involved in RHEL 5.5 and also applies to other Linux distributions. It is a required reference for all Linux users.

Book Purchase address: Dangdang China Interactive publishing network

 

Related serialization:

Linux core application command quick query: 10: PS: View Permissions

Linux core application command quick query: crontab: set a timer

Linux core application command quick query serialized eight: Kill: Killing Processes

Linux core application command quick query is serialized for seven: BG: Running commands in the background

Linux core application command quick query serialization 6: Batch: execute commands when the system load level permits

Linux core application command quick query: ATQ: displays the command queues to be executed after the AT command is used.

Linux core application command quick query: at: scheduled Run Command

Linux core application command quick query: SA: Reports, cleans up, and maintains process statistical files

Linux core application command quick query serialization 2: lastcomm: displays information about previously used commands

Linux core command speed query: accton: Process statistics on enabling or disabling

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.