Difference between revisions of "Parallel"
Jump to navigation
Jump to search
(→Basic) |
|||
Line 10: | Line 10: | ||
# Review different parallel options such as: <code>--keep-order</code> or <code>-k</code> which keep order in the output. Do not affect order of execution. | # Review different parallel options such as: <code>--keep-order</code> or <code>-k</code> which keep order in the output. Do not affect order of execution. | ||
# Update all your <code>[[git]]</code> repositories in a directory in macOS using parallel: <code>ls | parallel git -C {} fetch </code> | # Update all your <code>[[git]]</code> repositories in a directory in macOS using parallel: <code>ls | parallel git -C {} fetch </code> | ||
+ | |||
+ | == Related terms == | ||
+ | * [[Parallels]] | ||
== See also == | == See also == |
Revision as of 13:00, 29 September 2020
parallel
[1] allows the user to execute shell scripts or commands in parallel.
Activities
Basic
- Execute a command in parallel by ssh in MACHINE1 and MACHINE2 using parallel
- Read stackexchange questions about gnu-parallel: https://unix.stackexchange.com/questions/tagged/gnu-parallel?tab=votes&pagesize=50
- Install parallel in macOS:
brew install parallel
can conflict withbrew install moreutils
Intermediate
- Review different parallel options such as:
--keep-order
or-k
which keep order in the output. Do not affect order of execution. - Update all your
git
repositories in a directory in macOS using parallel:ls | parallel git -C {} fetch
Related terms
See also
xargs
,parallel
,paste
,map
- moreutils package
- CPU, GPU, NPU, TPU, DPU, Groq, Proliant, thread (
Pthreads
), processor, CPU socket, core, ARM , CPU Virtualization, Intel, AMD,nm
,lscpu
, AVX-512, Passthrough, CPU intensive, Graviton processor, Branch predictor, vCPU, SSE, Power
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source: https://en.wikiversity.org/wiki/Linux/Basic_commands/parallel
Advertising: