28 lines
835 B
Plaintext
28 lines
835 B
Plaintext
How to do a kickflip on Linux
|
|
|
|
I'm not quite a proper wizard when it comes to the wide world of Unix, but I've
|
|
picked up a couple neat tricks over the years. I might occasionally update this
|
|
page.
|
|
|
|
<h2>while true; do thing; done</h2>
|
|
|
|
<h2>for i in {0..5} do; thing{i}; done</h2>
|
|
|
|
<h2>nohup</h2>
|
|
|
|
Short for "no hangup", `nohup` allows another command to ignore the hangup
|
|
signal (SIGHUP). This, probably among other things, allows a command to run in
|
|
the background, continuing after an SSH disconnect, or other logouts. This has
|
|
proven very useful in my work, where certain processes can kick me out of SSH.
|
|
|
|
<h2>The Difference Between Parameters and Arguments</h2>
|
|
|
|
Simply put, a parameter is part of the function definition:
|
|
|
|
<code class="codeblock">
|
|
// vvvvv This is a parameter
|
|
fn do_stuff(input: i32) {
|
|
...
|
|
}
|
|
</code>
|