shell tip #14
This commit is contained in:
parent
e8b7823fe7
commit
23991199e8
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue