This commit is contained in:
Solène Rapenne 2023-09-13 10:48:09 +02:00
parent e8b7823fe7
commit 23991199e8
Signed by: solene
GPG Key ID: 8CD42DFD57F0A909
1 changed files with 8 additions and 1 deletions

View File

@ -61,7 +61,14 @@
<article id="tips">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Shell tips</h2>
<p></p>
<p>Know your processes! The <code>ps</code> command can actually provide a lot of information about processes running on your system. Per the man page, in the <code>state</code> column, letters are used to indicate some important information about the processes.</p>
<ul>
<li><code>c</code> indicates that the process is running in a chroot</li>
<li><code>p</code> tells the process has called pledge() (but not which promises were used)</li>
<li><code>U</code> shows the process has called unveil() and can't unveil() new paths/files anymore</li>
<li><code>u</code> 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!</li>
<li><code>X</code> will remind you that you are currently tracing/debugging the process, in case you forgot</li>
<p>Of course, there are many other states, I encourage you to read <code>ps(1)</code> man page to know about all the features it provides.</p>
</article>
<article id="links">