#procps 4.0.6 is now out along with #debian packages

What's new?
Should work better with elogind
w -t terminal mode for terminals
w "finding the tty" improved
watch 256 color support
w -pt doesn't crash it

https://gitlab.com/procps-ng/procps/-/releases/v4.0.6
#opensource #linux

4.0.6 · procps-ng / procps · GitLab

library version: inc revision to 1 now 1:1:0 internal: Use openat for files under /proc/ internal: Don't check for sd_booted Debian #1108549 internal: Address potential race...

GitLab

Another interesting procps bug. If you try to match a process by tty, you may get more than you expect.

This is because the match is done by device ID. If you have a mount namespace, this can mean you have more than one, say /dev/pts/0 so if you run pgrep on that tty, it might show processes within containers.

One fix is to check you are in the same mount namespace, but means if you do start a docker process and run ps it won;t show up.
#procps #programming

Today I learnt about stable and unstable sorting algorithms. Stable means for items with the same key, the order those items came into the sort remain the same.

In ps if you ask to sort by two keys, this matters. If you ask to sort by user and start time, the start time sort is done first, then user. But the user sort can scramble the start time (within a user's processes) because qsort() is not stable.

#procps #linux #programming

kali does not have sysctl.conf in 'normal' place but under ufw - they have some notes/readme but you have to kind of stumble through to enlightenment, i think arch is sim #procps
i am trying to dx why i can't shutdown -r now - soft cycle not working - possibly for some usb devices plugged in - will dx

Finally got to the bottom of a ps bug. If you use some, but not all, forest modes then direct children of init will not show up foresty.
It seems there was a check in the forest code where if the pid was 1 and forest mode was not unix, then the children didn't get the initial "tree branch" ascii art.

I tried tracking back to see why, got to 2002 and it was still there so gave up and fixed it.

#opensource #procps

#procpsNG 4.0.5 has been released (#procps) https://gitlab.com/procps-ng/procps
procps-ng / procps · GitLab

Command line and full screen utilities for browsing procfs, a "pseudo" file system dynamically generated by the kernel to provide information about the status of entries in its...

GitLab
W dzisiejszym wpisie z cyklu Porady Admina zajmiemy się poleceniem w https://linuxiarze.pl/porady-admina-procps-w/ #linux #porady #admin #procps
Porady Admina: w - Linuxiarze.pl

W dzisiejszym wpisie z cyklu Porady Admina zajmiemy się poleceniem w. w - Pokazuje, kto jest zalogowany w systemie i co robi. w wyświetla informacje o użytkownikach aktualnie korzystających z komputera i ich procesach. Nagłówek pokazuje w kolejności bieżący czas, czas działania systemu, liczbę aktualnie zalogowanych użytkowników oraz średnie obciążenie systemu z ostatnich 1, 5 i 15 minut. Dla każdego użytkownika wyświetlane są następujące

Linuxiarze.pl
W kolejnym wpisie z cyklu Porady Admina przybliżę program uptime https://linuxiarze.pl/porady-admina-procps-uptime/ #linux #admin #porady #procps
Porady Admina: uptime | Linuxiarze.pl

W kolejnym wpisie z cyklu Porady Admina przybliżę program uptime

W dzisiejszym wpisie z cyklu Porady Admina zajmiemy się programem vmstat https://linuxiarze.pl/porady-admina-procps-vmstat/ #admin #porady #procps #vmstat #linux
Porady Admina: vmstat | Linuxiarze.pl

W dzisiejszym wpisie z cyklu Porady Admina zajmiemy się programem vmstat

W kolejnym wpisie z cyklu Porady Admina zajmiemy się programem free https://linuxiarze.pl/porady-admina-procps-free/ #linux #admin #porady #procps
Porady Admina: free | Linuxiarze.pl

W kolejnym wpisie z cyklu Porady Admina zajmiemy się programem free