Shell tips
- +Know your processes! The ps
command can actually provide a lot of information about processes running on your system. Per the man page, in the state
column, letters are used to indicate some important information about the processes.
-
+
c
indicates that the process is running in a chroot
+ p
tells the process has called pledge() (but not which promises were used)
+ U
shows the process has called unveil() and can't unveil() new paths/files anymore
+ u
shows the process has called unveil() but it's not locked. It's most likely an issue with how unveil() has been added in the program!
+ X
will remind you that you are currently tracing/debugging the process, in case you forgot
+
Of course, there are many other states, I encourage you to read ps(1)
man page to know about all the features it provides.