Skip to content

Instantly share code, notes, and snippets.

@ychaouche
Created December 2, 2024 15:15
Show Gist options
  • Save ychaouche/22ac1282f9bfa628532e8b58bc726dfd to your computer and use it in GitHub Desktop.
Save ychaouche/22ac1282f9bfa628532e8b58bc726dfd to your computer and use it in GitHub Desktop.
root@messagerie-prep[10.10.10.19] ~ # ps x | sort -k 2 | head
1925 pts/0 Ss+ 0:00 -bash
28053 pts/1 R+ 0:00 ps x
28055 pts/1 S+ 0:00 head
28054 pts/1 S+ 0:00 sort -k 2
7695 pts/1 Ss 0:00 -bash
5126 pts/2 S+ 0:00 /bin/bash /root/SYNCHRO/bin/pretty.colorize.reverse (Firefox|Edge|Opera|Chrome)
5124 pts/2 S+ 0:03 tail -f /var/log/apache2/roundcube.access
5127 pts/2 S+ 0:06 sed -uE /(Firefox|Edge|Opera|Chrome)/!s/(.*)/\x1b[7m\1\x1b[0m/
5125 pts/2 S+ 0:26 /usr/bin/awk -f /root/SYNCHRO/bin/sys.log.apache.access.awkfilter
5091 pts/2 Ss 0:00 -bash
root@messagerie-prep[10.10.10.19] ~ # ps x | sort -k 2 | tail
199 ? Ss 111:50 /lib/systemd/systemd-journald
816 ? Ss 1:28 /usr/sbin/cron -f
823 ? Ss 1:41 /lib/systemd/systemd-logind
11785 ? Ss 24:08 /usr/sbin/dovecot -F
898 ? Ss 31:15 /usr/sbin/irqbalance --pid=/var/run/irqbalance.pid
1 ? Ss 4:27 /sbin/init
12450 ? Ss 6:38 /usr/sbin/apache2 -k start
897 ? Ssl 26:44 /usr/sbin/rsyslogd -n
916 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1 linux
PID TTY STAT TIME COMMAND
root@messagerie-prep[10.10.10.19] ~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment