Sponsored Content
Full Discussion: [Tip] ptree for Linux
Top Forums UNIX for Advanced & Expert Users [Tip] ptree for Linux Post 303043018 by nezabudka on Thursday 16th of January 2020 12:29:45 AM
Old 01-16-2020
Hi
As I understand it a linux "pstree"
My five cents.
It comes with a built-in pager
Code:
systemd-cgls

Another option
Code:
ps xawf -eo pid,user,cgroup,args

These 2 Users Gave Thanks to nezabudka For This Post:
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Meaning of ps -afe ,ps -fp and ptree

Hello, I was searching for the meaning of commands like ps -afe ,ps -fp and ptree but was not able to find there exact meaning .... Pls help me in getting these... Thanks in advance, Pradeep (1 Reply)
Discussion started by: PradeepRed
1 Replies

2. Gentoo

ptree for linux

at work, I'm a UNIX administrator, but at home I use openSUSE 11. One of the commands that I use to assist me in trouble shooting A LOT is called ptree process tree. does anyone know of a ptree for linux? yes, I can just use ps -ef and see who the parent pid is and then 'ps -ef | grep <parent... (4 Replies)
Discussion started by: james.witte
4 Replies

3. Red Hat

pfiles and pstack and ptree

Can someone tell me the Linux equivalent for pstack and pfiles and ptree which are Solaris commands. (1 Reply)
Discussion started by: bdsffl
1 Replies

4. Solaris

kill the processes seen under ptree

Hi, How to kill the processes running under ptree ? I am noticing lot of processes running under ptree with ssh ? I tried to kill with -9 option which is not working ? Thanks, Radhika. (2 Replies)
Discussion started by: radhirk
2 Replies

5. Shell Programming and Scripting

prstat from ptree ...

Hi, I know how to figure out the list of PID from my application name : ptree `pgrep MyApp` | awk '{print $1}' But I dont know how to pipe it for prstat -p <pidlist> ptree `pgrep MyApp` | awk '{print $1}' | prstat -p ??? I would like to monitor every ptree PID from my application. ... (4 Replies)
Discussion started by: RickTrader
4 Replies

6. Linux

ct, cu, tip, on commands in Linux

Please help me to find out the equivalent commands for the following solaris commands in Linux 1. ct 2. cu 3. tip 4. on Your help will be appreciated. Thanks in advance. ~Saravana (0 Replies)
Discussion started by: tsaravanan
0 Replies

7. UNIX for Dummies Questions & Answers

Linux Tip: How to Configure PPP for dialup for a single machine?

I shall explain how to setup PPP on your Linux machine, so that you can connect to the Internet using an external modem and a Dialup connection. This article explains the setup for the superuser alone (Not normal users).My Setup : My external modem (56kbps) is connected to the Serial Port :... (0 Replies)
Discussion started by: EliteHussar
0 Replies

8. Linux

similar command of ptree in linux

Hello guys, Is there any command to check the all child processes of a process like `ptree`? ptree is not working in Linux.. Regards, Raghu (3 Replies)
Discussion started by: raghu.iv85
3 Replies
SYSTEMD-CGLS(1)                                                    systemd-cgls                                                    SYSTEMD-CGLS(1)

NAME
systemd-cgls - Recursively show control group contents SYNOPSIS
systemd-cgls [OPTIONS...] [CGROUP...] systemd-cgls [OPTIONS...] --unit|--user-unit [UNIT...] DESCRIPTION
systemd-cgls recursively shows the contents of the selected Linux control group hierarchy in a tree. If arguments are specified, shows all member processes of the specified control groups plus all their subgroups and their members. The control groups may either be specified by their full file paths or are assumed in the systemd control group hierarchy. If no argument is specified and the current working directory is beneath the control group mount point /sys/fs/cgroup, shows the contents of the control group the working directory refers to. Otherwise, the full systemd control group hierarchy is shown. By default, empty control groups are not shown. OPTIONS
The following options are understood: --all Do not hide empty control groups in the output. -l, --full Do not ellipsize process tree members. -u, --unit Show cgroup subtrees for the specified units. --user-unit Show cgroup subtrees for the specified user units. -k Include kernel threads in output. -M MACHINE, --machine=MACHINE Limit control groups shown to the part corresponding to the container MACHINE. -h, --help Print a short help text and exit. --version Print a short version string and exit. --no-pager Do not pipe output into a pager. EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise. SEE ALSO
systemd(1), systemctl(1), systemd-cgtop(1), systemd-nspawn(1), ps(1) systemd 237 SYSTEMD-CGLS(1)
All times are GMT -4. The time now is 04:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy