At the command line I often use "simple" commands like
mv foo/bar baz/bar
but I don't know what to call all the parts of this:
┌1┐ ┌──2───┐
git checkout master
│ └──────3──────┘
└───────4─────────┘
I (think I) know that 1 is a command and 2's an argument, and I'd probably call 3 an argument list (is that correct?).
However, I don't know what to call 4.
How are more complex "commands" labelled?
find transcripts/?.? -name '*.txt' | parallel -- sh -c 'echo $1 $2' {} {/}
I'd appreciate an answer that breaks down what to call 1,2,3,4 and what to call each part of e.g. this "command" above.
It would be great to learn also about other things that are unique/surprising that I haven't included here.
man
pages forgit
andfind
, in particular the synopsis section?git
orfind
rather general terminology for linux.A | B
,A | B
is a pipeline,A
andB
are commands (it's unfortunate that this has the same name as just the first world in a command). I might call the first argument an executable but I can't find a source that agrees with me.git checkout ...
,checkout
is a subcommand, and in the context ofsh -c ...
,-c
is an option.