![BSD 中 ps --forest 的对应部分](https://linux22.com/image/141038/BSD%20%E4%B8%AD%20ps%20--forest%20%E7%9A%84%E5%AF%B9%E5%BA%94%E9%83%A8%E5%88%86.png)
我尝试探索 bash苹果系统使用该过程,
$ ps --forest
ps: illegal option -- -
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-g grp[,grp...]] [-u [uid,uid...]]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
开启时森托斯
[root@iz2ze9wve43n2nyuvmsfx5z ~]# ps --forest
PID TTY TIME CMD
30737 pts/1 00:00:00 bash
30757 pts/1 00:00:00 \_ bash
30770 pts/1 00:00:00 \_ bash
30781 pts/1 00:00:00 \_ bash
30795 pts/1 00:00:00 \_ bash
30808 pts/1 00:00:00 \_ ps
我怎样才能获得这个功能?