sagev.space/content/posts/_linux-kickflips.md

858 B

title draft
SageV.Space true

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.

while true; do thing; done

for i in {0..5} do; thing{i}; done

nohup

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.

The Difference Between Parameters and Arguments

Simply put, a parameter is part of the function definition:

// vvvvv This is a parameter fn do_stuff(input: i32) { ... }