QLC: ps awwx

A partir de hoje vou comentar neste blog alguns comandos para dar soluções a pequenos problemas que um utilizador ou administrador de sistemas Linux se pode deparar. A secção vai chamar-se QLCQuick Linux Commands.

1º Quick Linux Commands: ps awwx

Se precisarem de mostrar a linha completa do comando a correr num sistema, podemos usar a flag ‘ww‘ do comando ‘ps

Exemplo:

[root@proxy07 root]# ps awx|grep java
28120 ?        S      0:23 /etc/iscan/AdminUI/jre/bin/java -Djava.library.path=/etc/iscan/lib/mt:/etc/iscan/lib -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.endorsed.dirs=/etc/iscan/AdminUI/tomcat/common/endorsed -classpath /etc/iscan/AdminUI/jre/lib/tools.jar:/etc/iscan/AdminUI/tomcat/bin/bootstrap.jar -Dcata


[root@proxy07 root]# ps awwx|grep java
28120 ?        S      0:23 /etc/iscan/AdminUI/jre/bin/java -Djava.library.path=/etc/iscan/lib/mt:/etc/iscan/lib -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.endorsed.dirs=/etc/iscan/AdminUI/tomcat/common/endorsed -classpath /etc/iscan/AdminUI/jre/lib/tools.jar:/etc/iscan/AdminUI/tomcat/bin/bootstrap.jar -Dcatalina.base=/etc/iscan/AdminUI/tomcat -Dcatalina.home=/etc/iscan/AdminUI/tomcat -Djava.io.tmpdir=/etc/iscan/AdminUI/tomcat/temp org.apache.catalina.startup.Bootstrap start

Retirado da ‘man page’ do ‘ps’:

PS(1)                        Linux User’s Manual                        PS(1)

NAME
ps – report a snapshot of the current processes.

SYNOPSIS
ps [options]

DESCRIPTION
ps displays information about a selection of the active processes. If you
want a repetitive update of the selection and the displayed information,
use top(1) instead.

-w              Wide output. Use this option twice for unlimited width.

w               Wide output. Use this option twice for unlimited width.

x               Lift the BSD-style “must have a tty” restriction, which is
imposed upon the set of all processes when some BSD-style
options are used or when the ps personality setting is
BSD-like. The set of processes selected in this manner is in
addition to the set of processes selected by other means. An
alternate description is that this option causes ps to list
all processes owned by you (same EUID as ps), or to list all
processes when used together with the a option.

0 thoughts on “QLC: ps awwx”

Leave a Reply

Your email address will not be published. Required fields are marked *