From f0ea04a9f866449fe12820b5016b66008fe8b4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Fri, 3 Jan 2025 18:37:24 +0100 Subject: [PATCH] debugging: slides: give a few standard options for ps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Give some common options to tune ps output Fixes #178 Signed-off-by: Alexis Lothoré --- slides/debugging-common-tools/debugging-common-tools.tex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/slides/debugging-common-tools/debugging-common-tools.tex b/slides/debugging-common-tools/debugging-common-tools.tex index ccebdaa193..17cb11ac8f 100644 --- a/slides/debugging-common-tools/debugging-common-tools.tex +++ b/slides/debugging-common-tools/debugging-common-tools.tex @@ -263,7 +263,14 @@ \subsection{Process and CPU monitoring tools} \item Almost always present on embedded platforms (provided by {\em Busybox}). \end{itemize} - \item By default, displays only the current user/current tty processes. + \item By default, displays only the current user/current tty processes, + but output is highly customizable: + \begin{itemize} + \item \code{aux}/\code{-e}: show all processes + \item \code{-L}: show threads + \item \code{-p}: target a specific process + \item \code{-o}: select output columns to display + \end{itemize} \item Useful for scripting and parsing since its output is static. \end{itemize} \end{frame}