标题:[实践OK]ps在FreeBSD中截断的列宽,linux ps命令显示完整命令。 出处:向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除 时间:Mon, 29 Jun 2020 23:23:13 +0000 作者:jackxiang 地址:https://jackxiang.com/post/10607/ 内容: 一)ps在FreeBSD中截断的列宽: ps aux | grep php 在zsh中,例如,输出 root 50282 0.0 1.4 49512 29584 - Ss 23:03 0:00.05 php-fpm: master process (/usr/local/ 您可以看到它在屏幕上运行并在结束时被截止. 在FreeBSD中,如何查看完整输出? 最佳答案 使用-w选项(必要时重复).尝试: ps auxwww|grep php root 50282 0.0 1.4 49512 29584 - Ss 23:03 0:00.06 php-fpm: master process (/usr/local/php7/etc/php-fpm.conf) (php-fpm) 有关更多信息,请参见the manual page 二)linux ps命令显示完整命令: 在linux上执行ps命令,输出往往被截断 ps -f -p5457 UID PID PPID C STIME TTY TIME CMD root 5457 5449 0 4月26 pts/1 00:00:00 Worker***: master process start_file=/data/www/manage.** 可以使用以下形式,显示完整的命令 ps -w -w -f -p5457 UID PID PPID C STIME TTY TIME CMD root 5457 5449 0 4月26 pts/1 00:00:00 Worker***: master process start_file=/data/www/manage.****.***.cn/********/GatewayWorker/start.php 或者 ps -f -p5457|cat UID PID PPID C STIME TTY TIME CMD root 5457 5449 0 4月26 pts/1 00:00:00 Worker***: master process start_file=/data/www/manage.****.***.cn/********/GatewayWorker/start.php Generated by Jackxiang's Bo-blog 2.1.1 Release