如何在centos和linux等主机上安装 pstree

因为默认在机器上没有安装pstree,所以我们要通过yum来安装pstree

1:如果你是Mac OS 系统

brew install pstree

2:如果你是Fedora/Red Hat/CentOS系统

yum -y install psmisc

3:如果你是Ubuntu/Debian系统

 apt-get install psmisc

这样就可以使用pstree了~

原文地址:https://www.cnblogs.com/maohedashu/p/14518631.html