diff options
Diffstat (limited to 'software/unix-tricks')
-rw-r--r-- | software/unix-tricks | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/software/unix-tricks b/software/unix-tricks new file mode 100644 index 0000000..17479f7 --- /dev/null +++ b/software/unix-tricks @@ -0,0 +1,12 @@ +===================================== +UNIX Tricks +===================================== +**See also `freebsd </k/software/freebsd-tricks>`__ and +`debian </k/software/debian>`__ tricks.** + +Fork many processes with `xargs` +----------------------------------- +To fork off 10 instances of sleep with incremented lengths, 5 at a time:: + +$ seq 10 20 | xargs -n 1 -P 5 sleep + |